SelectionItemPattern

UIA Pro is supported as a technical preview.

UIAPro. SelectionItemPattern

new SelectionItemPattern()

The UIA Pro SelectionItem pattern used for individual items in selection container controls such as list boxes and combo boxes.

Methods

addToSelection() → {Promise.<void>}

Adds the current element to the collection of selected items.

Returns:

a promise that is fulfilled when the addToSelection operation ends.
Type
Promise.<void>

isSelected() → {Promise.<boolean>}

Checks if an item is selected.

Returns:

a promise that is fulfilled with an indication of whether the object is selected or not.
Type
Promise.<boolean>

removeFromSelection() → {Promise.<void>}

Removes the current element from the collection of selected items.

Returns:

a promise that is fulfilled when the removeFromSelection operation ends.
Type
Promise.<void>

select() → {Promise.<void>}

Deselects any selected items and then selects the current element.

Returns:

a promise that is fulfilled when the select operation ends.
Type
Promise.<void>