DrawWrappedText

Text, Page layout

Description

Draw text which is wrapped to a certain width. The SetTextAlign function can be used to change the alignment of the text. The SetBreakString function can be used to set the delimiter for the linebreak. The default is CR / LF pair. On some systems a LF may be default.

Syntax

Delphi

function TPDFlib.DrawWrappedText(XPos, YPos, Width: Double; Const Text: WideString): Integer;

ActiveX

Function PDFlib::DrawWrappedText(XPos As Double, YPos As Double, Width As Double, Text As String) As Long

DLL

int DLDrawWrappedText(int InstanceID, double XPos, double YPos, double Width, wchar_t * Text);

Parameters

XPosThe left edge of the text block The baseline of the first line of text
YPos
WidthThe width of the text block
TextThe text to draw