GetHTMLTextWidthA
Text, HTML text
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to GetHTMLTextWidth and string arguments are interpreted using the current SetAnsiMode code page
Returns the actual horizontal size of a block of HTML text when wrapped to a maximum
width by the DrawHTMLText function. See Appendix A for details of the supported HTML tags.
Syntax
Delphi
Function DLGetHTMLTextWidthA(InstanceID: Integer; MaxWidth: Double; HTMLText: PAnsiChar): Double;
DLL
double DLGetHTMLTextWidthA(int InstanceID, double MaxWidth, const char * HTMLText);
Parameters
| MaxWidth | The width of the area the text would be drawn into |
|---|---|
| HTMLText | The HTML text to determine the width of |