ISelectionProvider Interface
Definition
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.
public interface ISelectionProvider
Methods
| Name | Description |
|---|---|
| GetSelection | Retrieves a provider for each child element that is selected. |
GetSelection Method
Retrieves a provider for each child element that is selected.
public System.Collections.Generic.IReadOnlyList<Avalonia.Automation.Peers.AutomationPeer> GetSelection()
Returns
System.Collections.Generic.IReadOnlyList<Avalonia.Automation.Peers.AutomationPeer>
Remarks
- Windows
ISelectionProvider.GetSelection - macOS
NSAccessibilityProtocol.accessibilitySelectedChildren(not implemented).
Properties
| Name | Description |
|---|---|
| CanSelectMultiple | Gets a value that indicates whether the provider allows more than one child element to be selected concurrently. |
| IsSelectionRequired | Gets a value that indicates whether the provider requires at least one child element to be selected. |
CanSelectMultiple Property
Gets a value that indicates whether the provider allows more than one child element to be selected concurrently.
public bool CanSelectMultiple { get; set; }
Remarks
- Windows
ISelectionProvider.CanSelectMultiple - macOSNo mapping.
IsSelectionRequired Property
Gets a value that indicates whether the provider requires at least one child element to be selected.
public bool IsSelectionRequired { get; set; }
Remarks
- Windows
ISelectionProvider.IsSelectionRequired - macOSNo mapping.