ISelectionItemProvider ISelectionItemProvider ISelectionItemProvider ISelectionItemProvider Interface

Definition

Exposes methods and properties to support access by a Microsoft UI Automation client to individual, selectable child controls of containers that implement ISelectionProvider. Implement this interface in order to support the capabilities that an automation client requests with a GetPattern call and PatternInterface.SelectionItem.

public : interface ISelectionItemProvider
struct winrt::Windows::UI::Xaml::Automation::Provider::ISelectionItemProvider
public interface ISelectionItemProvider
Public Interface ISelectionItemProvider
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

This pattern has guidelines and conventions that aren't fully documented here. For more info on what this pattern is for, see SelectionItem Control Pattern. However, you don't need to follow the guidance regarding IRawElementProviderFragmentRoot, that is specific to COM provider implementations and the interface doesn't exist in the Windows Runtime automation provider API.

ISelectionItemProvider is implemented by these existing Windows Runtime classes:

Use SelectionItemPatternIdentifiers if you want to reference the ISelectionItemProvider pattern properties from control code when you fire automation events or call RaisePropertyChangedEvent.

Properties

IsSelected IsSelected IsSelected IsSelected

Gets a value that indicates whether an item is selected.

SelectionContainer SelectionContainer SelectionContainer SelectionContainer

Gets the UI Automation provider that implements ISelectionProvider and acts as the container for the calling object.

Methods

AddToSelection() AddToSelection() AddToSelection() AddToSelection()

Adds the current element to the collection of selected items.

RemoveFromSelection() RemoveFromSelection() RemoveFromSelection() RemoveFromSelection()

Removes the current element from the collection of selected items.

Select() Select() Select() Select()

Clears any existing selection and then selects the current element.

See Also