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 DoubleDLL
double DLGetMarkdownTextHeight(int InstanceID, double Width, const wchar_t * Markdown);Parameters
| Width | Available layout width |
|---|---|
| Markdown | Markdown 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