ID Property

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

Returns the item’s unique ID within the collection to which the item belongs.

Declaration

itemObj.ID
Read-Only Property Integer
itemObj     One of the objects listed in the Applies To section  

Applies To

This property applies to the following objects:

TcxEditButton, TcxRadioGroupItem

Description

Use the ID property to obtain the item’s unique ID within the collection. Usually, ID has the same value as the item’s Index when it was first added to the collection. However, unlike indices that are changed when items are deleted or rearranged, ID values are kept and never changed as long as the collection exists.

You can use the ID value to obtain the item via the FindItemID method of the collection to which the item belongs.

Property Value

An integer value that denotes the item’s unique ID within the collection.

See Also

FindItemID Method
Index Property (User Form Components)

Highlight search results