In This Article

SyntaxEditorAutomationPeer Class

Exposes SyntaxEditor type instances to UI Automation.

public class SyntaxEditorAutomationPeer : FrameworkElementAutomationPeer
Inheritance:
object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer object

Constructors

SyntaxEditorAutomationPeer(SyntaxEditor)

Exposes SyntaxEditor type instances to UI Automation.

public SyntaxEditorAutomationPeer(SyntaxEditor owner)
Parameter Type Description
owner SyntaxEditor

The owner element.

Properties

CurrentView

Gets the current control-specific view.

public int CurrentView { get; }

Property Value

int:

The value for the current view of the UI Automation element.

Methods

GetAutomationControlTypeCore()

Gets the control type for the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetAutomationControlType().

protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType:

The Custom enumeration value.

GetClassNameCore()

Gets the name of the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetClassName().

protected override string GetClassNameCore()

Returns

string:

An Empty string.

GetLocalizedControlTypeCore()

When overridden in a derived class, is called by GetLocalizedControlType().

protected override string GetLocalizedControlTypeCore()

Returns

string:

The type of the control.

GetPattern(PatternInterface)

Gets the control pattern for the UIElement that is associated with this UIElementAutomationPeer.

public override object GetPattern(PatternInterface patternInterface)
Parameter Type Description
patternInterface PatternInterface

A value from the enumeration.

Returns

object:

An object that implements the ISynchronizedInputProvider interface if patternInterface is SynchronizedInput; otherwise, null.

GetSupportedViews()

Retrieves a collection of control-specific view identifiers.

public int[] GetSupportedViews()

Returns

int[]:

A collection of values that identifies the views available for a UI Automation element.

GetViewName(int)

Retrieves the name of a control-specific view.

public string GetViewName(int viewId)
Parameter Type Description
viewId int

The view identifier.

Returns

string:

A localized name for the view.

Exceptions

Type Condition
ArgumentException

viewId is not a member of the supported views collection.

SetCurrentView(int)

Sets the current control-specific view.

public void SetCurrentView(int viewId)
Parameter Type Description
viewId int

A view identifier.

Exceptions

Type Condition
ArgumentException

viewId is not a member of the supported views collection.

Extension Methods