GetWrappedTextBreakString
Text
Description
Similar to the GetWrappedText function, but preserves the break strings originally in the text. This is useful for splitting text into different areas on the page.
Syntax
Delphi
Function TPDFlib.GetWrappedTextBreakString(Width: Double; Const Delimiter, Text: WideString): WideString;
ActiveX
Function PDFlib::GetWrappedTextBreakString(Width As Double, Delimiter As String, Text As String) As String
DLL
const wchar_t* DLGetWrappedTextBreakString(int InstanceID, double Width, const wchar_t* Delimiter, const wchar_t* Text);
const char* DLGetWrappedTextBreakStringA(int InstanceID, double Width, const char* Delimiter, const char* Text);
Parameters
| Width | The width that the text should be wrapped to |
|---|---|
| Delimiter | The delimiter to use between wrapped lines |
| Text | The text to wrap |
Return values
Returns the text wrapped to the given width with Delimiter inserted between the wrapped parts, keeping the break strings that were already present in Text. Returns an empty string when Width is too small for any text or the selected font aborts on a missing glyph.