AutoSize Property

Applies to TestComplete 14.40, last modified on April 22, 2021

Specifies whether the component is automatically resized to display its entire contents.

Declaration

componentObj.AutoSize
Read-Write Property Boolean
componentObj     One of the user forms components listed in the Applies To section  

Applies To

The property applies to the following components:

TcxButtonEdit, TcxCalcEdit, TcxCheckBox, TcxComboBox, TcxCurrencyEdit, TcxDateEdit, TcxLabel, TcxMRUEdit, TcxProgressBar, TcxSpinEdit, TcxTextEdit, TcxTimeEdit, TImage, TPanel

Description

The AutoSize property specifies whether the component is automatically resized to display its entire contents. If this property is True, when the component contents is changed the component is resized so that it closely fits its contents.

Set this property to True to be sure that the text displayed within the component (for example, a label) will not be displayed truncated if the text length increases.

Property Value

True, if the component is resized to display its contents; False otherwise.

See Also

Constraints Property
OnResize Event
Height Property
Width Property
Stretch Property

Highlight search results