Property Property

Applies to TestComplete 15.64, last modified on June 12, 2024

Obtains or sets the value of the property specified by its index.


Read-Write Property Variant
componentObj     One of the user forms components or objects listed in the Applies To section  
Index [in] Required Integer

Applies To

This property applies to the following components and objects:

TBevel, TBitmap, TBrush, TcxButton, TcxButtonColors, TcxButtonEdit, TcxButtonEditProperties, TcxCalcEdit, TcxCalcEditProperties, TcxCheckBox, TcxCheckBoxProperties, TcxCurrencyEdit, TcxCurrencyEditProperties, TcxDateEdit, TcxDateEditProperties, TcxEditAlignment, TcxEditButton, TcxEditButtons, TcxGroupBox, TcxLabel, TcxLabelProperties, TcxListBox, TcxMemo, TcxMemoProperties, TcxMRUEdit, TcxMRUEditProperties, TcxProgressBar, TcxProgressBarProperties, TcxRadioGroup, TcxRadioGroupItem, TcxRadioGroupItems, TcxRadioGroupProperties, TcxSpinEdit, TcxSpinEditButtons, TcxSpinEditProperties, TcxTextEdit, TcxTextEditProperties, TcxTimeEdit, TcxTimeEditProperties, TImage, TOpenDialog, TObjectPicker, TPanel, TPen, TPicture, TRectObjectPicker, TSaveDialog, TSelectDirectory, TSelectObjectPropertyDialog, TShape, TSizeConstraints, TStrings


Use Property to get or set the value of the object’s property specified by its index. The total number of the object’s properties is specified by the PropertyCount property.


The property has the following parameter:


The index of the desired property. The index is zero-based: the first property has an index of 0, the second - 1, and so on. The index of the last property is PropertyCount - 1.

Property Value

Variant value containing the value of the specified property.


If you use Python or DelphiScript, you should enclose the parameter of the Property property in square brackets: Property[Index].

To obtain the property name by its index, use the PropertyName property.

See Also

PropertyByName Property
PropertyCount Property
PropertyExists Method
PropertyName Property

Highlight search results