GetHTMLTextLineCountA
文字、HTML 文字
描述
結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 GetHTMLTextLineCount 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀
傳回一段 HTML 文字以 繪製時會佔用的行數
DrawHTMLText 函式。支援的 HTML 標籤細節請看附錄 A
語法
Delphi
Function DLGetHTMLTextLineCountA(InstanceID: Integer; Width: Double; HTMLText: PAnsiChar): Integer;
DLL
int DLGetHTMLTextLineCountA(int InstanceID, double Width, const char* HTMLText);
參數
| Width | 文字要繪入區域的寬度 |
|---|---|
| HTMLText | 要計算行數的 HTML 文字 |