|
TextHeight procedure (TgtCustomDocumentEngine) |
Top |
|
function TextHeight(Text: WideString): Double; overload;
Description Returns the height, in MeasurementUnit, of a string rendered with the currently set Font.
Example:
Delphi: LS := 'Draw Rectangle using TextHeight'; gtPDFEngine1.TextOut(2, 2, LS); LY := 2.1 + gtPDFEngine1.TextHeight(LS); gtPDFEngine1.Rectangle(2, LY, 5, LY + 2, True);
C++Builder: LS = "Draw Rectangle using TextHeight"; gtPDFEngine1->TextOut(2, 2, LS); LY = 2.1 + gtPDFEngine1->TextHeight(LS); gtPDFEngine1->Rectangle(2, LY, 5, LY + 2, True);
|