Class
RadMenuItemAutomationPeer

The AutomationPeer associated with the RadMenuItem class.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

cs-api-definition
[Obsolete("Use the RadMenuItemAutomationPeer that is under the Telerik.Windows.Automation.Peers namespace")]
public class RadMenuItemAutomationPeer : FrameworkElementAutomationPeer, IExpandCollapseProvider, IToggleProvider, IInvokeProvider

Inheritance: objectRadMenuItemAutomationPeer

Derived Classes: RadMenuItemAutomationPeer

Implements: IExpandCollapseProviderIInvokeProviderIToggleProvider

Constructors

RadMenuItemAutomationPeer(RadMenuItem)

Initializes a new instance of the RadMenuItemAutomationPeer class. Automation Peer for the RadMenuItem class.

Declaration

cs-api-definition
public RadMenuItemAutomationPeer(RadMenuItem owner)

Parameters

owner

RadMenuItem

The object that is associated with this AutomationPeer.

Properties

ExpandCollapseState

IExpandCollapseProvider implementation.

Declaration

cs-api-definition
public ExpandCollapseState ExpandCollapseState { get; }

Property Value

ExpandCollapseState

ToggleState

IToggleProvider implementation.

Declaration

cs-api-definition
public ToggleState ToggleState { get; }

Property Value

ToggleState

Methods

Collapse()

IExpandCollapseProvider implementation.

Declaration

cs-api-definition
public void Collapse()

Expand()

IExpandCollapseProvider implementation.

Declaration

cs-api-definition
public void Expand()

GetAccessKeyCore()

Returns the access key for the UIElement associated with this AutomationPeer. This method is called by AutomationPeer.GetAccessKey.

Declaration

cs-api-definition
protected override string GetAccessKeyCore()

Returns

string

The access key for the UIElement associated with this AutomationPeer.

GetAutomationControlTypeCore()

Returns the control type for the UIElement associated with this AutomationPeer. This method is called by AutomationPeer.GetAutomationControlType.

Declaration

cs-api-definition
protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType

The AutomationControlType.MenuItem enumeration value.

GetChildrenCore()

Get the children collection of the UIElement associated with this AutomationPeers. This method is called by AutomationPeer.GetChildren.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1002:DoNotExposeGenericLists")]
protected override List<AutomationPeer> GetChildrenCore()

Returns

List<AutomationPeer>

A list of child System.Windows.Automation.Peers.AutomationPeer elements.

GetClassNameCore()

Returns the name of the class associated with this AutomationPeer. This method is called by AutomationPeer.GetClassName.

Declaration

cs-api-definition
protected override string GetClassNameCore()

Returns

string

GetNameCore()

Returns the name of the UIElement associated with this AutomationPeer.

Declaration

cs-api-definition
protected override string GetNameCore()

Returns

string

GetPattern(PatternInterface)

Returns the control pattern for the UIElement that is associated with this AutomationPeer.

Declaration

cs-api-definition
public override object GetPattern(PatternInterface patternInterface)

Parameters

patternInterface

PatternInterface

One of the PatternInterface enum values.

Returns

object

Invoke()

IInvokeProvider implementation.

Declaration

cs-api-definition
public void Invoke()

IsControlElementCore()

Returns a value that indicates whether the UIElement that is associated with this is understood by the end user as interactive. Optionally, the user might understand the UIElement as contributing to the logical structure of the control in the GUI. This method is called by .

Declaration

cs-api-definition
protected override bool IsControlElementCore()

Returns

bool

True if the element is interactive; otherwise, false.

Toggle()

IToggleProvider implementation.

Declaration

cs-api-definition
public void Toggle()