THPDFPage.TextHeight

THPDFPage

 

Top  Previous  Next

Returns the height of a string rendered in the current font (the ascent of the font), in the page units of THotPDF.Resolution (1/Resolution inch), the same units as the drawing coordinates

 

Delphi syntax:

function TextHeight ( Text: AnsiString ): Real;

 

C++ syntax:

double __fastcall TextHeight ( AnsiString Text );

 

Description:

 

Use TextHeight to determine the height a string. Other elements such as lines, boxes, or additional lines of text can be positioned to accommodate the height of the text