Constraints Property

Applies to TestComplete 15.47, last modified on January 20, 2023

Specifies the size constraints for the component.

Declaration

componentObj.Constraints
Read-Write Property A TSizeConstraints object
componentObj     One of the user forms components listed in the Applies To section  

Applies To

The property applies to the following components:

TBevel, TcxButton, TcxButtonEdit, TcxCalcEdit, TcxCheckBox, TcxComboBox, TcxCurrencyEdit, TcxDateEdit, TcxGroupBox, TcxLabel, TcxListBox, TcxMemo, TcxMRUEdit, TcxProgressBar, TcxRadioGroup, TcxSpinEdit, TcxTextEdit, TcxTimeEdit, TImage, TPanel, TShape

Description

The Constraints property lets you obtain and specify minimum and maximum component size. If the size constraints are set, the component cannot be resized smaller than the minimum size and larger than the maximum size.

Property Value

A TSizeConstraints object.

See Also

TSizeConstraints Object
Height Property
Width Property

Highlight search results