PropertyExists Method

Applies to TestComplete 15.64, last modified on May 16, 2024

Checks to see if an object has a property with the specified name.


componentObj.PropertyExists(Name) Parameters
componentObj     One of the user forms components or objects listed in the Applies To section  
Name [in] Required String
Result     Boolean  

Applies To

This method 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


Use the PropertyExists method to check whether the object has the property with the specified name. To obtain the property value by its name, use the PropertyByName property.


The method has the following parameter:


The property name.

Return Value

True, if the object has the specified property; False otherwise.

See Also

Property Property
PropertyByName Property
PropertyCount Property
PropertyName Property

Highlight search results