GetMarkdownTextLineCount

文字、Markdown、量測

描述

傳回 Markdown 在指定寬度下產生的描繪行數

語法

Delphi

Function TPDFlib.GetMarkdownTextLineCount(Width: Double; Const Markdown: WideString): Integer;

ActiveX

Function PDFlib::GetMarkdownTextLineCount(Width As Double, Markdown As String) As Long

DLL

int DLGetMarkdownTextLineCount(int InstanceID, double Width, const wchar_t * Markdown);

參數

WidthAvailable layout width
Markdown要量測的 Markdown 來源

傳回值

傳回描繪行數;寬度無效或來源為空時傳回 0

備註

DLGetMarkdownTextLineCountA 這個 DLL 變體依設定的 ANSI 模式接受文字