Focus Property (Specific to MSAA List Objects)

Applies to TestComplete 15.45, last modified on December 01, 2022

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