EditorOutliningMarginToggleButtonAutomationPeer Class
Exposes EditorOutliningMargin toggle button type instances to UI Automation.
public class EditorOutliningMarginToggleButtonAutomationPeer : AutomationPeer
- Inheritance:
- object AutomationPeer object
Constructors
EditorOutliningMarginToggleButtonAutomationPeer(EditorOutliningMargin, TextSnapshotRange, Rect)
Exposes EditorOutliningMargin toggle button type instances to UI Automation.
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.
public ExpandCollapseState ExpandCollapseState { get; }
Property Value
- ExpandCollapseState:
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()
When overridden in a derived class, is called by GetAcceleratorKey().
GetAccessKeyCore()
When overridden in a derived class, is called by GetAccessKey().
protected override string? GetAccessKeyCore()
Returns
- string:
The string that contains the access key.
GetAutomationControlTypeCore()
When overridden in a derived class, is called by GetAutomationControlType().
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
- AutomationControlType:
The control type.
GetAutomationIdCore()
When overridden in a derived class, is called by GetAutomationId().
protected override string GetAutomationIdCore()
Returns
- string:
The string that contains the identifier.
GetBoundingRectangleCore()
When overridden in a derived class, is called by GetBoundingRectangle().
protected override Rect GetBoundingRectangleCore()
Returns
- Rect:
The bounding rectangle.
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | A public call to this method is currently in progress. |
GetChildrenCore()
When overridden in a derived class, is called by GetChildren().
protected override List<AutomationPeer>? GetChildrenCore()
Returns
- List<AutomationPeer>:
The collection of child elements.
GetClassNameCore()
When overridden in a derived class, is called by GetClassName().
GetClickablePointCore()
When overridden in a derived class, is called by GetClickablePoint().
protected override Point GetClickablePointCore()
Returns
- Point:
A point within the clickable area of the element.
GetHelpTextCore()
When overridden in a derived class, is called by GetHelpText().
GetItemStatusCore()
When overridden in a derived class, is called by GetItemStatus().
GetItemTypeCore()
When overridden in a derived class, is called by GetItemType().
GetLabeledByCore()
When overridden in a derived class, is called by GetLabeledBy().
protected override AutomationPeer? GetLabeledByCore()
Returns
- AutomationPeer:
The LabelAutomationPeer for the element that is targeted by the Label.
GetLocalizedControlTypeCore()
When overridden in a derived class, is called by GetLocalizedControlType().
GetNameCore()
When overridden in a derived class, is called by GetName().
GetOrientationCore()
When overridden in a derived class, is called by GetOrientation().
protected override AutomationOrientation GetOrientationCore()
Returns
- AutomationOrientation:
The orientation of the control.
GetPattern(PatternInterface)
When overridden in a derived class, 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;
nullif this peer does not support this interface.
HasKeyboardFocusCore()
When overridden in a derived class, is called by HasKeyboardFocus().
protected override bool HasKeyboardFocusCore()
Returns
- bool:
trueif the element has keyboard focus; otherwise,false.
IsContentElementCore()
When overridden in a derived class, is called by IsContentElement().
protected override bool IsContentElementCore()
Returns
- bool:
trueif the element is a content element; otherwise,false.
IsControlElementCore()
When overridden in a derived class, is called by IsControlElement().
protected override bool IsControlElementCore()
Returns
- bool:
trueif the element is a control; otherwise,false.
IsEnabledCore()
When overridden in a derived class, is called by IsEnabled().
protected override bool IsEnabledCore()
Returns
- bool:
trueif the automation peer can receive and send events; otherwise,false.
IsKeyboardFocusableCore()
When overridden in a derived class, is called by IsKeyboardFocusable().
protected override bool IsKeyboardFocusableCore()
Returns
- bool:
trueif the element can accept keyboard focus; otherwise,false.
IsOffscreenCore()
When overridden in a derived class, is called by IsOffscreen().
protected override bool IsOffscreenCore()
Returns
- bool:
trueif the element is not on the screen; otherwise,false.
IsPasswordCore()
When overridden in a derived class, is called by IsPassword().
protected override bool IsPasswordCore()
Returns
- bool:
trueif the element contains sensitive content; otherwise,false.
IsRequiredForFormCore()
When overridden in a derived class, is called by IsRequiredForForm().
protected override bool IsRequiredForFormCore()
Returns
- bool:
trueif the element is must be completed; otherwise,false.
SetFocusCore()
When overridden in a derived class, is called by SetFocus().
protected override void SetFocusCore()