GetMarkdownTextLineCount
Text, Markdown, Measurement
Description
Returns the number of rendered lines produced by Markdown at the requested width
Syntax
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);Parameters
| Width | Available layout width |
|---|---|
| Markdown | Markdown source to measure |
Return values
Returns the number of rendered lines, or 0 for an invalid width or empty source
Remarks
The DLL DLGetMarkdownTextLineCountA variant accepts text according to the configured ANSI mode