PropertyByName Property

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

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

Declaration

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

Description

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

Parameters

The property has the following parameter:

Name

The name of the desired property.

Property Value

Variant value containing the value of the specified property.

Remarks

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