TFont.Height

Applies to TestComplete 15.47, last modified on January 20, 2023

Specifies the font size, in pixels.

Declaration

TFontObj.Height
Read-Only Property Integer
TFontObj     A TFont object  

Description

The TFont.Height property lets you obtain or set the font size in pixels.

Return Value

An integer value that specifies the font size, in pixels.

If the Height value is negative, the value does not include the internal leading that appears at the top of each line of text. If the value is positive, Height represents the characters height including the internal leading.

If the Height value is negative, it means that the value includes the internal leading that appears at the top of each line of text. If the value is positive, Height represents the height of characters without the internal leading.

Remarks

Usually the font size is specified in points. To get or set the font size in points, use the Size property.

If the Height property holds a positive value, Size is negative, and otherwise. When you set the Height property, Size is automatically recalculated.

See Also

TFont.Size

Highlight search results