Skip to main content

ISelectionItemProvider Interface

Definition​

Assembly:Avalonia.Controls
Package:Avalonia

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

public interface ISelectionItemProvider

Methods​

NameDescription
AddToSelectionAdds the current element to the collection of selected items.
RemoveFromSelectionRemoves the current element from the collection of selected items.
SelectClears any existing selection and then selects the current element.

AddToSelection Method​

Adds the current element to the collection of selected items.

public void AddToSelection()

Remarks​

  • WindowsISelectionItemProvider.AddToSelection
  • macOSNSAccessibilityProtocol.accessibilityPerformPick (not implemented). NSAccessibilityProtocol.setAccessibilitySelected (not implemented).

RemoveFromSelection Method​

Removes the current element from the collection of selected items.

public void RemoveFromSelection()

Remarks​

  • WindowsISelectionItemProvider.RemoveFromSelection
  • macOSNSAccessibilityProtocol.setAccessibilitySelected (not implemented).

Select Method​

Clears any existing selection and then selects the current element.

public void Select()

Remarks​

  • WindowsISelectionItemProvider.Select
  • macOSNo mapping.

Properties​

NameDescription
IsSelectedGets a value that indicates whether an item is selected.
SelectionContainerGets the UI Automation provider that implements Avalonia.Automation.Provider.ISelectionProvider and acts as the container for the calling object.

IsSelected Property​

Gets a value that indicates whether an item is selected.

public bool IsSelected { get; set; }

Remarks​

  • WindowsISelectionItemProvider.IsSelected
  • macOSNSAccessibilityProtocol.isAccessibilitySelected

SelectionContainer Property​

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

public Avalonia.Automation.Provider.ISelectionProvider SelectionContainer { get; set; }

Remarks​

  • WindowsISelectionItemProvider.SelectionContainer
  • macOSNo mapping.