Property Property

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

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

Declaration

componentObj.Property(Index)
Read-Write Property Variant
Parameters
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

Description

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.

Parameters

The property has the following parameter:

Index

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.

Remarks

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