DrawMultiLineText

Text, Page layout

Description

Draw text which is wrapped at a specific delimiter.

The SetTextAlign function can be used to change the alignment of the text.

Syntax

Delphi

Function TPDFlib.DrawMultiLineText(XPos, YPos: Double; Const Delimiter, Text: WideString): Integer;

ActiveX

Function PDFlib::DrawMultiLineText(XPos As Double, YPos As Double, Delimiter As String, Text As String) As Long

DLL

int DLDrawMultiLineText(int InstanceID, double XPos, double YPos, const wchar_t* Delimiter, const wchar_t* Text);
int DLDrawMultiLineTextA(int InstanceID, double XPos, double YPos, const char* Delimiter, const char* Text);

Parameters

XPosThe horizontal reference point of the text block
YPosThe baseline of the first line of text
DelimiterThe delimiter to use when splitting the text into lines. The only valid characters to use as the delimiter are characters which have a "width", as well as the CR and LF characters (ASCII values 13 and 10). A delimiter that is CR, LF or the CR/LF pair stands for every line ending in the text, so a lone CR or LF splits the text as well.
TextThe text to draw

Return values

Returns 1 when the text lines have been drawn, or 0 when the selected font cannot supply a required glyph and missing-glyph abort is active. An empty Text draws nothing and still returns 1