WindowControlAutomationPeer Class
Exposes WindowControl types to UI Automation.
public class WindowControlAutomationPeer : FrameworkElementAutomationPeer
- Inheritance:
- object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer object
Constructors
WindowControlAutomationPeer(WindowControl)
Initializes a new instance of the WindowControlAutomationPeer
class.
public WindowControlAutomationPeer(WindowControl owner)
Parameter | Type | Description |
---|---|---|
owner | WindowControl | The owner element. |
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.
GetClassNameCore()
Gets a name that is used with AutomationControlType
, to differentiate the control that is represented by this AutomationPeer
.
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 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. |