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 sola línea con alineación horizontal y vertical. TextOutBox ajusta las palabras al ancho proporcionado hasta que se agota la altura y devuelve la cantidad de caracteres de origen consumidos. GetTextRowCount devuelve el número de filas con la misma regla de ajuste