THPDFPage TextBox / TextOutBox / GetTextRowCount

Topo

Posiciona texto em retângulos fixos usando a fonte atual e as funções de métrica de texto existentes 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 dentro da largura fornecida até esgotar a altura e retorna o número de caracteres de origem consumidos. GetTextRowCount retorna a contagem de linhas para a mesma regra de quebra