PropertyExists Method

Applies to TestComplete 15.20, last modified on January 19, 2022

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

Declaration

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

Description

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.

Parameters

The method has the following parameter:

Name

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