Skip to main content
Pie
ra0

TcxCanvas.FontHeight(TFont) Method

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

Declaration

function FontHeight(AFont: TFont): Integer;

Parameters

Name Type
AFont TFont

Returns

Type
Integer

Remarks

Call this function to determine the height of a string written with the font passed as the AFont parameter. Other image elements such as lines, boxes, or additional text lines can then be positioned to accommodate the text height.

See Also