Class
RadSplitButtonAutomationPeer

Represents the automation peer for the RadSplitButton control, providing accessibility support for UI automation clients. This class implements the IInvokeProvider and IExpandCollapseProvider interfaces, enabling the automation client to invoke actions on the button and control its expanded or collapsed state. The peer exposes properties and methods that allow automation tools to interact with the associated RadSplitButton, including retrieving the control's ExpandCollapseState, invoking the button, expanding or collapsing its drop-down content, and providing metadata such as the control's name and help text.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class RadSplitButtonAutomationPeer : FrameworkElementAutomationPeer, IInvokeProvider, IExpandCollapseProvider

Inheritance: objectRadSplitButtonAutomationPeer

Derived Classes: RibbonSplitButtonAutomationPeer

Implements: IExpandCollapseProviderIInvokeProvider

Constructors

RadSplitButtonAutomationPeer(RadSplitButton)

Initializes a new instance of the RadSplitButtonAutomationPeer class.

Declaration

cs-api-definition
public RadSplitButtonAutomationPeer(RadSplitButton owner)

Parameters

owner

RadSplitButton

The owner.

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 nodes, controls, or content that are descendants 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()

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

Declaration

cs-api-definition
protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType

A value of the enumeration.

GetAutomationIdCore()

Returns the string that uniquely identifies the FrameworkElement that is associated with this . This method is called by .

Declaration

cs-api-definition
protected override string GetAutomationIdCore()

Returns

string

The automation identifier for the element associated with the , or Empty if there is no automation identifier.

GetChildrenCore()

Returns the collection of child elements of the UIElement that is associated with this . This method is called by .

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1002:DoNotExposeGenericLists", Justification = "This is an override of a built-in class, the return type cannot be changed.")]
protected override List<AutomationPeer> GetChildrenCore()

Returns

List<AutomationPeer>

A list of child AutomationPeer elements.

GetClassNameCore()

Returns the name of the UIElement that is associated with this . This method is called by .

Declaration

cs-api-definition
protected override string GetClassNameCore()

Returns

string

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

GetHelpTextCore()

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

Declaration

cs-api-definition
protected override string GetHelpTextCore()

Returns

string

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

GetItemStatusCore()

Declaration

cs-api-definition
protected override string GetItemStatusCore()

Returns

string

GetLocalizedControlTypeCore()

When overridden in a derived class, is called by .

Declaration

cs-api-definition
protected override string GetLocalizedControlTypeCore()

Returns

string

The type of the control.

GetNameCore()

Returns the text label of the FrameworkElement that is associated with this . This method is called by .

Declaration

cs-api-definition
protected override string GetNameCore()

Returns

string

The text label of the element that is associated with this automation peer.

GetPattern(PatternInterface)

Gets the pattern.

Declaration

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

Parameters

patternInterface

PatternInterface

The pattern.

Returns

object

Invoke()

Sends a request to activate a control and initiate its single, unambiguous action.

Declaration

cs-api-definition
public void Invoke()