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。