New to Telerik UI for WPFStart a free 30-day trial

Provides the automation peer for the RadLegend control, enabling UI automation support by exposing properties, events, and child elements to assistive technologies. This class derives from and overrides methods to provide specific information about the RadLegend instance it is associated with. The RadLegendAutomationPeer allows for the retrieval of the owner control's class name, a localized control type, the automation control type, and a collection of child elements. It also provides help text for the control and can expose custom property values in advanced automation mode.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class RadLegendAutomationPeer : FrameworkElementAutomationPeer

Inheritance: objectRadLegendAutomationPeer

Constructors

Initializes a new instance of the RadLegendAutomationPeer class.

C#
public RadLegendAutomationPeer(RadLegend owner)
Parameters:ownerRadLegend

The RadLegend that is associated with this RadLegendAutomationPeer.

Methods

GetAutomationControlTypeCore()

AutomationControlType

Returns the control type for the element that is associated with this RadLegendAutomationPeer.

C#
protected override AutomationControlType GetAutomationControlTypeCore()
Returns:

AutomationControlType

The enumeration value.

Remarks:

This method is called by .

GetChildrenCore()

List<AutomationPeer>

Returns the collection of child elements of the UIElement that is associated with this RadLegendAutomationPeer.

C#
protected override List<AutomationPeer> GetChildrenCore()
Returns:

List<AutomationPeer>

A list of child AutomationPeer elements.

Remarks:

This method is called by .

Returns the name of the RadLegend that is associated with this RadLegendAutomationPeer.

C#
protected override string GetClassNameCore()
Returns:

string

The name of the owner type that is associated with this RadLegendAutomationPeer.

Remarks:

This method is called by .

Returns the string that describes the functionality of the FrameworkElement that is associated with this . This method is called by .

C#
protected override string GetHelpTextCore()
Returns:

string

The help text, or Empty if there is no help text.

C#
protected override sealed string GetItemStatusCore()
Returns:

string

Returns a localized string that contains the type name of the owner control.

C#
protected override string GetLocalizedControlTypeCore()
Returns:

string

A localized string that contains the type name of the owner control.

Remarks:

This method is called by .