Applies to TestComplete 15.65, last modified on July 17, 2024

Specifies the font size, in points.


Read-Only Property Integer
TFontObj     A TFont object  


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.


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


Highlight search results