Font Property

Applies to TestComplete 15.69, last modified on November 13, 2024

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

Declaration

componentPropObj.Font
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

Description

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.

Remarks

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