EditorOutliningMarginToggleButtonAutomationPeer Class
Exposes EditorOutliningMargin toggle button type instances to UI Automation.
public class EditorOutliningMarginToggleButtonAutomationPeer : AutomationPeer
- Inheritance:
- object AutomationPeer object
Constructors
EditorOutliningMarginToggleButtonAutomationPeer(EditorOutliningMargin, TextSnapshotRange, Rect)
Initializes a new instance of the EditorOutliningMarginToggleButtonAutomationPeer
class.
public EditorOutliningMarginToggleButtonAutomationPeer(EditorOutliningMargin owner, TextSnapshotRange viewLineSnapshotRange, Rect viewLineBounds)
Parameter | Type | Description |
---|---|---|
owner | EditorOutliningMargin | The owner element. |
viewLineSnapshotRange | TextSnapshotRange | The TextSnapshotRange of the view line. |
viewLineBounds | Rect | The bounds of the view line. |
Properties
ExpandCollapseState
Gets the state, expanded or collapsed, of the control.
Methods
Collapse()
Hides all nodes, controls, or content that are descendants of the control.
public void Collapse()
Expand()
Displays all child nodes, controls, or content of the control.
public void Expand()
GetAcceleratorKeyCore()
Gets the accelerator key combination for the object that is associated with the UI Automation peer.
protected override string GetAcceleratorKeyCore()
Returns
- string:
The accelerator key combination for the object that is associated with the UI Automation peer.
GetAccessKeyCore()
Gets the access key for the object that is associated with the automation peer.
protected override string GetAccessKeyCore()
Returns
- string:
The access key for the object that is associated with the automation peer.
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.
GetAutomationIdCore()
Gets the ID of the object that is associated with the automation peer.
protected override string GetAutomationIdCore()
Returns
- string:
The ID of the object that is associated with the automation peer.
GetBoundingRectangleCore()
Gets the System.Windows.Rect object that represents the screen coordinates of the element that is associated with the automation peer.
protected override Rect GetBoundingRectangleCore()
Returns
- Rect:
The System.Windows.Rect object that represents the screen coordinates of the element that is associated with the automation peer.
GetChildrenCore()
Returns the child UI Automation peers.
protected override List<AutomationPeer> GetChildrenCore()
Returns
- List<AutomationPeer>:
The child UI Automation peers.
GetClassNameCore()
Gets a name that is used with AutomationControlType
, to differentiate the control that is represented by this AutomationPeer
.
GetClickablePointCore()
Gets a System.Windows.Point on the object that is associated with the automation peer that responds to a mouse click.
protected override Point GetClickablePointCore()
Returns
- Point:
A System.Windows.Point on the object that is associated with the automation peer that responds to a mouse click.
GetHelpTextCore()
Gets text that describes the functionality of the control that is associated with the automation peer.
protected override string GetHelpTextCore()
Returns
- string:
Text that describes the functionality of the control that is associated with the automation peer.
GetItemStatusCore()
Gets text that conveys the visual status of the object that is associated with this automation peer.
protected override string GetItemStatusCore()
Returns
- string:
Text that conveys the visual status of the object that is associated with this automation peer.
GetItemTypeCore()
Gets a string that describes what kind of item an element represents.
protected override string GetItemTypeCore()
Returns
- string:
A string that describes what kind of item an element represents.
GetLabeledByCore()
Gets the AutomationPeer for the UIElement that is targeted to the element.
protected override AutomationPeer GetLabeledByCore()
Returns
- AutomationPeer:
The AutomationPeer for the UIElement that is targeted to the element.
GetLocalizedControlTypeCore()
Gets a localized string that represents the AutomationControlType
value for the control that is associated with this automation peer.
GetNameCore()
Gets the value that the automation peer reports as the UI Automation name for the associated control.
protected override string GetNameCore()
Returns
- string:
The value that the automation peer reports as the UI Automation name for the associated control.
GetOrientationCore()
Gets a value that indicates the explicit control orientation, if any.
protected override AutomationOrientation GetOrientationCore()
Returns
- AutomationOrientation:
The explicit control orientation.
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.
HasKeyboardFocusCore()
Gets a value that indicates whether the object that is associated with this automation peer currently has keyboard focus.
protected override bool HasKeyboardFocusCore()
Returns
- bool:
true
if the element has keyboard focus; otherwise,false
.
IsContentElementCore()
Gets a value that indicates whether the object that is associated with this automation peer contains data that is presented to the user.
protected override bool IsContentElementCore()
Returns
- bool:
true
if the element is a content element; otherwise,false
.
IsControlElementCore()
Gets a value that indicates whether the element is understood by the user as interactive or as contributing to the logical structure of the control in the GUI.
protected override bool IsControlElementCore()
Returns
- bool:
true
if the element is a control; otherwise,false
.
IsEnabledCore()
Gets a value that indicates whether the element associated with this automation peer supports interaction.
protected override bool IsEnabledCore()
Returns
- bool:
true
if the element supports interaction; otherwise,false
.
IsKeyboardFocusableCore()
Gets a value that indicates whether the element can accept keyboard focus.
protected override bool IsKeyboardFocusableCore()
Returns
- bool:
true
if the element can accept keyboard focus; otherwise,false
.
IsOffscreenCore()
Gets a value that indicates whether an element is off the screen.
protected override bool IsOffscreenCore()
Returns
- bool:
true
if the element is not on the screen; otherwise,false
.
IsPasswordCore()
Gets a value that indicates whether the element contains sensitive content.
protected override bool IsPasswordCore()
Returns
- bool:
true
if the element contains sensitive content such as a password; otherwise,false
.
IsRequiredForFormCore()
Gets a value that indicates whether the object that is associated with this peer must be completed on a form.
protected override bool IsRequiredForFormCore()
Returns
- bool:
true
if the element must be completed; otherwise,false
.
SetFocusCore()
Sets the keyboard focus on the object that is associated with this automation peer.
protected override void SetFocusCore()