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, wchar_t * Text);

Parameters

TextThe text to determine the width for

Return values

The width of the specified text