Applies to TestComplete 14.71, last modified on November 27, 2020

Obtains or sets the value of the property with the specified name.


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

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, TObjectPicker, TOpenDialog, TPanel, TPen, TPicture, TRectObjectPicker, TSaveDialog, TSelectDirectory, TSelectObjectPropertyDialog, TShape, TSizeConstraints, TStrings


The PropertyByName property lets you get or set the value of the property specified by its name.


The property has the following parameter:


The name of the desired property.

Property Value

Variant value containing the value of the specified property.


If the property with the specified name does not exist, an error occurs. To check whether the object has the property with desired name, use PropertyExists.

You can also use Property to get or set the property value by its index.

See Also

Property Property
PropertyCount Property
PropertyExists Method
PropertyName Property

Highlight search results