Font Property

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

Returns the TFont object that specifies the font of the text displayed in a user form component.


Read-Write Property A TFont object
componentPropObj     One of the objects listed in the Applies To section  

Applies To

This property applies to the following components and objects:

TcxButton, TcxEditStyle, TcxGroupBox, TPanel


The Font property returns a TFont object that lets you get or set various attributes of a component’s font.

Note that if the component’s ParentFont property is True, it will use the same font as its parent.

Property Value

A TFont object that specifies the component’s font attributes.


When you change the Font property value, the ParentFont property is automatically set to False. To make the component use the same font as its parent, set ParentFont to True.

See Also

TFont Object
ParentFont Property
Color Property

Highlight search results