Table of Contents

Interface ISelectionItemProvider

Namespace
Avalonia.Automation.Provider
Assembly
Avalonia.Controls.dll

Exposes methods and properties to support access by a UI Automation client to individual, selectable child controls of containers that implement ISelectionProvider.

public interface ISelectionItemProvider

Properties

IsSelected

Gets a value that indicates whether an item is selected.

bool IsSelected { get; }

Property Value

bool

Remarks

Windows ISelectionItemProvider.IsSelected
macOS NSAccessibilityProtocol.isAccessibilitySelected

SelectionContainer

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

ISelectionProvider? SelectionContainer { get; }

Property Value

ISelectionProvider

Remarks

Windows ISelectionItemProvider.SelectionContainer
macOSNo mapping.

Methods

AddToSelection()

Adds the current element to the collection of selected items.

void AddToSelection()

Remarks

Windows ISelectionItemProvider.AddToSelection
macOS NSAccessibilityProtocol.accessibilityPerformPick (not implemented). NSAccessibilityProtocol.setAccessibilitySelected (not implemented).

RemoveFromSelection()

Removes the current element from the collection of selected items.

void RemoveFromSelection()

Remarks

Windows ISelectionItemProvider.RemoveFromSelection
macOS NSAccessibilityProtocol.setAccessibilitySelected (not implemented).

Select()

Clears any existing selection and then selects the current element.

void Select()

Remarks

Windows ISelectionItemProvider.Select
macOSNo mapping.