THPDFPage TextBox / TextOutBox / GetTextRowCount | Вверх |
|
Размещает текст в fixed rectangles, используя current font и существующие функции text metric 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 выводит одну строку с horizontal и vertical alignment. TextOutBox переносит words в заданную width, пока height не исчерпан, и возвращает число consumed source characters. GetTextRowCount возвращает row count для того же wrapping rule |