SelectorItemAutomationPeer SelectorItemAutomationPeer SelectorItemAutomationPeer SelectorItemAutomationPeer Class

Definition

Exposes the items in a Selector to Microsoft UI Automation.

public : class SelectorItemAutomationPeer : ItemAutomationPeer, ISelectorItemAutomationPeer, ISelectionItemProviderpublic class SelectorItemAutomationPeer : ItemAutomationPeer, ISelectorItemAutomationPeer, ISelectionItemProviderPublic Class SelectorItemAutomationPeer Inherits ItemAutomationPeer Implements ISelectorItemAutomationPeer, ISelectionItemProvider// This API is not available in Javascript.
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited methods

Inherited properties

Remarks

The Windows Runtime SelectorItemAutomationPeer is created by selected item logic in SelectorAutomationPeer, not by invoking a OnCreateAutomationPeer definition on SelectorItem. Derive an automation peer from SelectorItemAutomationPeer if you are also creating a peer based on SelectorAutomationPeer and want to change the selected-item automation info.

Default peer implementation and overrides in SelectorItemAutomationPeer

SelectorItemAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.

The peer also has other behaviors that are provided by the base FrameworkElementAutomationPeer class. For more info, see "Base implementation in FrameworkElementAutomationPeer" section of Custom automation peers.SelectorItem

SelectorItemAutomationPeer derived classes

SelectorItemAutomationPeer is the parent class for these classes:

Constructors

SelectorItemAutomationPeer(Object, SelectorAutomationPeer) SelectorItemAutomationPeer(Object, SelectorAutomationPeer) SelectorItemAutomationPeer(Object, SelectorAutomationPeer) SelectorItemAutomationPeer(Object, SelectorAutomationPeer)

Initializes a new instance of the SelectorItemAutomationPeer class.

public : SelectorItemAutomationPeer(PlatForm::Object item, SelectorAutomationPeer parent)public SelectorItemAutomationPeer(Object item, SelectorAutomationPeer parent)Public Sub New(item As Object, parent As SelectorAutomationPeer)// This API is not available in Javascript.
Parameters
item
PlatForm::Object Object Object Object

The specific item.

Properties

IsSelected IsSelected IsSelected IsSelected

Gets a value that indicates whether an item is selected.

public : PlatForm::Boolean IsSelected { get; }public bool IsSelected { get; }Public ReadOnly Property IsSelected As bool// This API is not available in Javascript.
Value
PlatForm::Boolean bool bool bool

true if the element is selected; otherwise, false.

SelectionContainer SelectionContainer SelectionContainer SelectionContainer

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

public : IRawElementProviderSimple SelectionContainer { get; }public IRawElementProviderSimple SelectionContainer { get; }Public ReadOnly Property SelectionContainer As IRawElementProviderSimple// This API is not available in Javascript.

Methods

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

Adds the current element to the collection of selected items.

public : void AddToSelection()public void AddToSelection()Public Function AddToSelection() As void// This API is not available in Javascript.

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

Removes the current element from the collection of selected items.

public : void RemoveFromSelection()public void RemoveFromSelection()Public Function RemoveFromSelection() As void// This API is not available in Javascript.

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

Clears any existing selection and then selects the current element.

public : void Select()public void Select()Public Function Select() As void// This API is not available in Javascript.

See Also