StandardSwitcherItemAutomationPeer Class
Exposes StandardSwitcherItem types to UI Automation.
public class StandardSwitcherItemAutomationPeer : FrameworkElementAutomationPeer
- Inheritance:
- object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer object
Constructors
StandardSwitcherItemAutomationPeer(StandardSwitcherItem)
Initializes a new instance of the StandardSwitcherItemAutomationPeer
class.
public StandardSwitcherItemAutomationPeer(StandardSwitcherItem owner)
Parameter | Type | Description |
---|---|---|
owner | StandardSwitcherItem | The owner element. |
Properties
IsSelected
Gets a value that indicates whether an item is selected.
public bool IsSelected { get; }
Property Value
- bool:
true
if the element is selected; otherwisefalse
.
SelectionContainer
Gets the UI Automation provider that implements ISelectionProvider
and acts as the container for the calling object.
public IRawElementProviderSimple SelectionContainer { get; }
Property Value
- IRawElementProviderSimple:
The provider that supports
ISelectionProvider
.
Methods
AddToSelection()
Adds the current element to the collection of selected items.
public void AddToSelection()
GetAutomationControlTypeCore()
Gets the control type for the element that is associated with the UI Automation peer.
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
- AutomationControlType:
The control type.
GetChildrenCore()
Gets the collection of child elements that are represented in the UI Automation tree as immediate child elements of the automation peer.
protected override List<AutomationPeer> GetChildrenCore()
Returns
- List<AutomationPeer>:
The collection of
AutomationPeer
objects for child elements.
GetClassNameCore()
Gets a name that is used with AutomationControlType
, to differentiate the control that is represented by this AutomationPeer
.
GetHelpTextCore()
Gets text that describes the functionality of the control that is associated with the automation peer.
GetLocalizedControlTypeCore()
Gets a localized string that represents the AutomationControlType
value for the control that is associated with this automation peer.
GetNameCore()
Gets text that describes the element that is associated with this automation peer.
GetPattern(PatternInterface)
Gets the control pattern that is associated with the specified PatternInterface.
public override object GetPattern(PatternInterface patternInterface)
Parameter | Type | Description |
---|---|---|
patternInterface | PatternInterface | A value from the PatternInterface enumeration. |
Returns
- object:
The object that implements the pattern interface;
null
if the peer does not support this interface.
Invoke()
public void Invoke()
RemoveFromSelection()
Removes the current element from the collection of selected items.
public void RemoveFromSelection()
Select()
Deselects any selected items and then selects the current element.
public void Select()