THPDFPage TextBox / TextOutBox / GetTextRowCount

Topo

Coloca texto em retângulos fixos usando o tipo de letra atual e as funções de métricas de texto existentes do HotPDF

Delphi syntax:

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 devolve o número de caracteres de origem consumidos. GetTextRowCount devolve a contagem de linhas para a mesma regra de quebra