GetHTMLTextLineCount

文本、HTML 文本

描述

返回使用下列项绘制 HTML 文本块时将占用的行数

DrawHTMLText 函数。受支持 HTML 标签的详细信息请参阅附录 A

语法

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);

参数

Width文本将被绘制到的区域宽度
HTMLText用于确定行数的 HTML 文本

返回值

返回用 DrawHTMLText 按给定宽度绘制时 HTML 文本将占用的行数。Width 不为正数或 HTMLText 为空时返回 0。