THPDFPage TextBox / TextOutBox / GetTextRowCount

Arriba

Coloca texto en rectángulos fijos usando la fuente actual y las funciones de métricas de texto existentes de HotPDF

Sintaxis Delphi:

procedure TextBox(Rect: TRect; Text: AnsiString; Hor: THPDFJustificationType = jtLeft; Vert: THPDFTextBoxVerticalAlignment = tbvaTop);

function TextOutBox(X, Y, LineSpacing, BoxWidth, BoxHeight: Integer; Text: AnsiString; Align: THPDFJustificationType = jtLeft): Integer;

function GetTextRowCount(BoxWidth: Integer; Text: AnsiString): Integer;

TextBox emite una línea con alineación horizontal y vertical. TextOutBox ajusta palabras al ancho suministrado hasta agotar la altura y devuelve el número de caracteres de origen consumidos. GetTextRowCount devuelve el recuento de filas para la misma regla de ajuste