GetTextWidth
Text, Fonts, Page layout
Description
Calculate the width of the specified text, based on the selected font and font size.
Syntax
Delphi
Function TPDFlib.GetTextWidth(Const Text: WideString): Double;
ActiveX
Function PDFlib::GetTextWidth(Text As String) As Double
DLL
double DLGetTextWidth(int InstanceID, const wchar_t * Text);
Parameters
| Text | The text to determine the width for |
|---|
Return values
| The width of the specified text |