THPDFPage TextBox / TextOutBox / GetTextRowCount

Topo

Coloca texto em retângulos fixos usando a fonte atual e as funções existentes de métricas de texto do HotPDF.

Sintaxe 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 uma linha com alinhamento horizontal e vertical. TextOutBox quebra palavras na largura fornecida até a altura se esgotar e retorna o número de caracteres de origem consumidos. GetTextRowCount retorna a contagem de linhas para a mesma regra de quebra.