HotPDF Delphi PDF Component Developer Guide loslab Logo

 

THPDFPage.TextHeight

THPDFPage

 

Top  Previous  Next

Returns the height, in pixels, of a string rendered in the current font.

 

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.

Copyright©2007-2019 losLab.com