Class
RadExpanderAutomationPeer

Represents the automation peer for a RadExpander control, enabling UI automation support for the control's expand and collapse functionality. This class inherits from FrameworkElementAutomationPeer and implements the IExpandCollapseProvider interface. It provides functionality to determine the expanded or collapsed state of the control, as well as methods to expand and collapse the content. The class also supports retrieving the associated control patterns, automation control type, and details about the control such as its name and properties. It ensures that operations can only be performed on an enabled instance of RadExpander and raises appropriate automation events when the expand/collapse state changes.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class RadExpanderAutomationPeer : FrameworkElementAutomationPeer, IExpandCollapseProvider

Inheritance: objectRadExpanderAutomationPeer

Implements: IExpandCollapseProvider

Constructors

RadExpanderAutomationPeer(RadExpander)

Initializes a new instance of the RadExpanderAutomationPeer class.

Declaration

cs-api-definition
public RadExpanderAutomationPeer(RadExpander element)

Parameters

element

RadExpander

Properties

ExpandCollapseState

Gets the state, expanded or collapsed, of the control.

Declaration

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

Property Value

ExpandCollapseState

The state, expanded or collapsed, of the control.

Methods

Collapse()

Hides all child nodes, controls, or content of the control.

Declaration

cs-api-definition
public void Collapse()

Expand()

Displays all child nodes, controls, or content of the control.

Declaration

cs-api-definition
public void Expand()

GetAutomationControlTypeCore()

Declaration

cs-api-definition
protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType

GetChildrenCore()

Declaration

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

Returns

List<AutomationPeer>

GetClassNameCore()

Declaration

cs-api-definition
protected override string GetClassNameCore()

Returns

string

GetHelpTextCore()

Declaration

cs-api-definition
protected override string GetHelpTextCore()

Returns

string

GetItemStatusCore()

Declaration

cs-api-definition
protected override string GetItemStatusCore()

Returns

string

GetNameCore()

Declaration

cs-api-definition
protected override string GetNameCore()

Returns

string

GetPattern(PatternInterface)

Gets a control pattern that is associated with this AutomationPeer.

Declaration

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

Parameters

patternInterface

PatternInterface

Returns

object

IsEnabledCore()

Declaration

cs-api-definition
protected override bool IsEnabledCore()

Returns

bool