THPDFPage.WideTextOutBox Method

Outputs a Unicode string inside a rectangular text box with automatic line wrapping, and returns the number of lines actually placed

Declaration

function WideTextOutBox(X, Y, LineSpacing, BoxWidth, BoxHeight: Integer; Text: WideString; Align: THPDFJustificationType): Integer;

Unit

HPDFDoc

Parameters

NamePurpose
XTop-left X coordinate of the text box, in user-space units
YTop-left Y coordinate of the text box, in user-space units
LineSpacingLine spacing, in user-space units
BoxWidthInput used by WideTextOutBox
BoxHeightText box height, in user-space units
TextThe Unicode text to output
AlignJustification (jtLeft, jtCenter, jtRight, jtJustified)

Return value

Returns an Integer value

Usage notes

Related APIs