GetHTMLTextLineCount
Text, HTML text
Description
Returns the number of lines a block of HTML text will take up if it is drawn using the
DrawHTMLText function. See Appendix A for details of the supported HTML tags.
Syntax
Delphi
Function TPDFlib.GetHTMLTextLineCount(Width: Double; Const HTMLText: WideString): Integer;
ActiveX
Function PDFlib::GetHTMLTextLineCount(Width As Double, HTMLText As String) As Long
DLL
int DLGetHTMLTextLineCount(int InstanceID, double Width, const wchar_t* HTMLText);
int DLGetHTMLTextLineCountA(int InstanceID, double Width, const char* HTMLText);
Parameters
| Width | The width of the area the text would be drawn into |
|---|---|
| HTMLText | The HTML text to determine the number of lines of |
Return values
Returns the number of lines the HTML text will occupy when drawn with DrawHTMLText at the given width. Returns 0 when Width is not positive or HTMLText is empty.