WPFControlIndex Property (WPF Application Objects)

Applies to TestComplete 14.71, last modified on April 22, 2021
This property is obsolete. See the Remarks section below.

Description

Returns the index of a WPF application’s object in the child object collection of the parent object. This value is used to distinguish the objects that have the same class name and text.

Declaration

WPFAppObj.WPFControlIndex

Read-Only Property Integer
WPFAppObj A WPF application object

Applies To

All WPF application objects, except for substrate windows.

Property Value

An integer value that specifies the object’s index.

Remarks

The WPFControlIndex property is obsolete and supported for backward compatibility only. Use the WPFControlOrdinalNo property instead.

The property is available only if the application under test is a WPF application and the WPF Control Support plugin is installed and enabled in File | Install Extensions.

See Also

Testing WPF Applications

Highlight search results