Focus Property (Specific to MSAA List Objects)

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

Description

Use the Focus property to determine the index of the focused list box item. To get the caption of the focused item, use the Item property.

Declaration

TestObj.Focus

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

The property is applied to the following object:

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 index of the focused item.

See Also

ItemCount Property (Specific to MSAA ComboBox and MSAA List Objects)
Item Property (Specific to MSAA ComboBox and MSAA List Objects)
Selected Property (MSAA Objects)
DoDefaultAction Method (MSAA Objects)

Highlight search results