FlipSwitchAutomationPeer Class
Exposes FlipSwitch types to UI Automation.
public class FlipSwitchAutomationPeer : GaugeBaseAutomationPeer
- Inheritance:
- object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer GaugeBaseAutomationPeer object
Constructors
FlipSwitchAutomationPeer(FlipSwitch)
Initializes a new instance of the FlipSwitchAutomationPeer class.
public FlipSwitchAutomationPeer(FlipSwitch owner)
Parameter | Type | Description |
---|---|---|
owner | FlipSwitch | The owner. |
Methods
GetPattern(PatternInterface)
Gets the object that supports the specified control pattern of the element that is associated with this automation peer.
public override object GetPattern(PatternInterface patternInterface)
Parameter | Type | Description |
---|---|---|
patternInterface | PatternInterface | A value in the enumeration. |
Returns
- object:
This method will return a 'this' pointer in the follow cases:
-
If
patternInterface
isPatternInterface.Toggle
.
-
If