GetMarkdownTextLineCount
テキスト、Markdown、測定
説明
要求幅で Markdown が生成したレンダリング行数を返します
構文
Delphi
Function TPDFlib.GetMarkdownTextLineCount(Width: Double; Const Markdown: WideString): Integer;ActiveX
Function PDFlib::GetMarkdownTextLineCount(Width As Double, Markdown As String) As LongDLL
int DLGetMarkdownTextLineCount(int InstanceID, double Width, const wchar_t * Markdown);パラメータ
| Width | 使用可能なレイアウト幅 |
|---|---|
| Markdown | 測定する Markdown ソース |
戻り値
レンダリングされた行数を返します。幅が無効またはソースが空の場合は 0 を返します
備考
DLL の DLGetMarkdownTextLineCountA バリアントは、構成された ANSI モードに従ってテキストを受け入れます