Interface ISelectionProvider
Exposes methods and properties to support access by a UI Automation client to controls that act as containers for a collection of individual, selectable child items. The children of this control must implement ISelectionItemProvider.
Namespace: System.Windows.Automation.Provider
Assembly: OpenSilver.dll
Syntax
public interface ISelectionProvider
Properties
| Improve this Doc View SourceCanSelectMultiple
Gets a value that indicates whether the UI automation provider allows more than one child element to be selected concurrently.
Declaration
bool CanSelectMultiple { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if multiple selection is allowed; otherwise, false. |
IsSelectionRequired
Gets a value that indicates whether the UI automation provider requires at least one child element to be selected.
Declaration
bool IsSelectionRequired { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if selection is required; otherwise, false. |
Methods
| Improve this Doc View SourceGetSelection()
Retrieves a UI automation provider for each child element that is selected.
Declaration
IRawElementProviderSimple[] GetSelection()
Returns
Type | Description |
---|---|
IRawElementProviderSimple[] | A generic list of UI automation providers. |