GetWrappedTextHeight
Text, Page layout
Description
Get the height of a block of text wrapped to a certain width, 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.GetWrappedTextHeight(Width: Double; Const Text: WideString): Double;ActiveX
Function PDFlib::GetWrappedTextHeight(Width As Double, Text As String) As DoubleDLL
double DLGetWrappedTextHeight(int InstanceID, double Width, wchar_t * Text);Parameters
| Width | The width of the block to wrap the text to |
|---|---|
| Text | The text to wrap |
Return values
| Returns the height of the text block |