GetHTMLTextHeightA
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 GetHTMLTextHeight and string arguments are interpreted using the current SetAnsiMode code page
Returns the height that a certain block of HTML text will occupy if drawn onto the page. See
Appendix A for details of the supported HTML tags.
Syntax
Delphi
Function DLGetHTMLTextHeightA(InstanceID: Integer; Width: Double; HTMLText: PAnsiChar): Double;
DLL
double DLGetHTMLTextHeightA(int InstanceID, double Width, const char* HTMLText);
Parameters
| Width | The width of the area the text would be drawn into |
|---|---|
| HTMLText | The HTML to determine the height of. See Appendix A for details of the supported HTML tags. |