GetWrappedText

Text, Page layout

Description

Get the positions where text will wrap, based on the current font and text size. The SetBreakString function can be used to set the delimiter for the linebreak. The default is a CR/LF pair. On some systems a LineFeed may be default.

Syntax

Delphi

function TPDFlib.GetWrappedText(Width: Double; Const Delimiter, Text: WideString): WideString;

ActiveX

Function PDFlib::GetWrappedText(Width As Double, Delimiter As String, Text As String) As String

DLL

wchar_t * DLGetWrappedText(int InstanceID, double Width, wchar_t * Delimiter, wchar_t * Text);

Parameters

WidthThe width of the block to wrap the text to
DelimiterThe string to place between each line
TextThe text to wrap

Return values

Returns the lines of the text block, separated by the Delimiter string