ControlIndexInGroup Property (MSAA Objects)

Applies to TestComplete 15.40, last modified on July 05, 2022

Description

The ControlIndexInGroup property returns the object’s index among other objects that have the same type and belong to the same parent object. This index can be used to uniquely identify the given object. Also, this index is used to address the object in case the object does not have an accessible name specified (see Addressing Objects in MSAA Open Applications).

Declaration

TestObj.ControlIndexInGroup

Read-Only Property Integer
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section

Applies To

This property is applied to all the objects that are exposed by the MSAA engine.

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Property Value

A zero-based integer number that specifies the object’s index among sibling objects of the same type.

Note: For invisible objects (Visible = false), the ControlIndexInGroup property always returns -1.

See Also

Caption Property (MSAA Objects)
ControlIndex Property (MSAA Objects)
DoDefaultAction Method (MSAA Objects)

Highlight search results