GetMarkdownTextWidth
Text, Markdown, Measurement
Description
Returns the widest rendered Markdown line within a maximum layout width
Syntax
Delphi
Function TPDFlib.GetMarkdownTextWidth(MaxWidth: Double; Const Markdown: WideString): Double;ActiveX
Function PDFlib::GetMarkdownTextWidth(MaxWidth As Double, Markdown As String) As DoubleDLL
double DLGetMarkdownTextWidth(int InstanceID, double MaxWidth, const wchar_t * Markdown);Parameters
| MaxWidth | Maximum available layout width |
|---|---|
| Markdown | Markdown source to measure |
Return values
Returns the rendered width in the active measurement units, or 0 for an invalid maximum width
Remarks
The DLL DLGetMarkdownTextWidthA variant accepts text according to the configured ANSI mode