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 Double

DLL

double DLGetMarkdownTextWidth(int InstanceID, double MaxWidth, const wchar_t * Markdown);

Parameters

MaxWidthMaximum available layout width
MarkdownMarkdown 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