TFont.Size

Applies to TestComplete 15.42, last modified on September 08, 2022

Specifies the font size, in points.

Declaration

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

Description

The TFont.Size property lets you get or set the font size in points.

Return Value

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

If the Size 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, Size represents the height of the characters without the internal leading.

Remarks

To get or set the font size in pixels, use the Height property.

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

See Also

TFont.Height

Highlight search results