StandardSwitcherAutomationPeer Class
Exposes StandardSwitcher types to UI Automation.
public class StandardSwitcherAutomationPeer : FrameworkElementAutomationPeer
- Inheritance:
- object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer object
Constructors
StandardSwitcherAutomationPeer(StandardSwitcher)
Initializes a new instance of the StandardSwitcherAutomationPeer
class.
public StandardSwitcherAutomationPeer(StandardSwitcher owner)
Parameter | Type | Description |
---|---|---|
owner | StandardSwitcher | The owner element. |
Properties
CanSelectMultiple
Gets a value that specifies whether the UI Automation provider allows more than one child element to be selected concurrently.
public bool CanSelectMultiple { get; }
Property Value
- bool:
true
if multiple selection is allowed; otherwisefalse
.
IsSelectionRequired
Gets a value that specifies whether the UI Automation provider requires at least one child element to be selected.
public bool IsSelectionRequired { get; }
Property Value
- bool:
true
if selection is required; otherwisefalse
.
Methods
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
.
GetClickablePointCore()
Gets a point on the element that is associated with the automation peer that responds to a mouse click.
protected override Point GetClickablePointCore()
Returns
- Point:
A point in the clickable area of the element.
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.
GetSelection()
Retrieves a UI Automation provider for each child element that is selected.
public IRawElementProviderSimple[] GetSelection()
Returns
- IRawElementProviderSimple[]:
A collection of UI Automation providers.