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 Long

DLL

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

Parameters

WidthAvailable layout width
MarkdownMarkdown 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