THPDFPage TextBox / TextOutBox / GetTextRowCount

Κορυφή

Τοποθετεί text σε fixed rectangles χρησιμοποιώντας την current font και τις υπάρχουσες HotPDF text metric functions

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 εκπέμπει μία line με horizontal και vertical alignment. Το TextOutBox κάνει wrap words στο supplied width μέχρι να εξαντληθεί το height και επιστρέφει τον αριθμό source characters που καταναλώθηκαν. Το GetTextRowCount επιστρέφει το row count για τον ίδιο wrapping rule