GetMarkdownTextHeight

Text, Markdown, Measurement

Description

Returns the height required to lay out Markdown within the requested width

Syntax

Delphi

Function TPDFlib.GetMarkdownTextHeight(Width: Double; Const Markdown: WideString): Double;

ActiveX

Function PDFlib::GetMarkdownTextHeight(Width As Double, Markdown As String) As Double

DLL

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

Parameters

WidthAvailable layout width
MarkdownMarkdown source to measure

Return values

Returns the required height in the active measurement units, or 0 for an invalid width

Remarks

The measured plan can be reused by a matching draw call without repeating HTML layout

The DLL DLGetMarkdownTextHeightA variant accepts text according to the configured ANSI mode