GetWrappedTextLineCount
Text, Page layout
Description
Determine the number of lines a block of text wrapped to a certain width will take up, based on the current font and text size. The SetBreakString function can be used to set the delimiter for the linebreak. The default is CR / LF pair. On some systems a LineFeed may be default.
Syntax
Delphi
Function TPDFlib.GetWrappedTextLineCount(Width: Double; Const Text: WideString): Integer;
ActiveX
Function PDFlib::GetWrappedTextLineCount(Width As Double, Text As String) As Long
DLL
int DLGetWrappedTextLineCount(int InstanceID, double Width, const wchar_t * Text);
Parameters
| Width | The width of the block to wrap the text to |
|---|---|
| Text | The text to wrap |
Return values
| The number of lines |