GetTextBound

Text, Fonts, Page layout

Description

Returns the bounding box of the font. This is the largest rectangle which can enclose every character of the font. The top and bottom are measured from the baseline of the font.

Syntax

Delphi

function TPDFlib.GetTextBound(Edge: Integer): Double;

ActiveX

Function PDFlib::GetTextBound(Edge As Long) As Double

DLL

double DLGetTextBound(int InstanceID, int Edge);

Parameters

EdgeThe edge measurement to retrieve: 1 = Left 2 = Top 3 = Right 4 = Bottom

Return values

0The edge specified was not valid
Non-zeroThe specified edge measurement