THPDFPage.TextHeight

THPDFPage

 

Top  Previous  Next

Gives the height of a string drawn in the current font (the font's ascent), in the page units of THotPDF.Resolution (1/Resolution inch) - the same units as the drawing coordinates

 

Delphi syntax:

function TextHeight ( const Text: AnsiString ): Single;

 

C++ syntax:

float __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