GetTextWidthA
Text, Fonts, Page layout
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to GetTextWidth and string arguments are interpreted using the current SetAnsiMode code page
Calculate the width of the specified text, based on the selected font and font size
Syntax
Delphi
Function DLGetTextWidthA(InstanceID: Integer; Text: PAnsiChar): Double;
DLL
double DLGetTextWidthA(int InstanceID, const char * Text);
Parameters
| Text | The text to determine the width for |
|---|
Return values
| The width of the specified text |