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

The AutomationPeer class for the RadRibbonTab control.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.RibbonView.dll

Syntax:

C#
public class RibbonTabAutomationPeer : ItemAutomationPeer, ISelectionItemProvider

Inheritance: objectRibbonTabAutomationPeer

Implements: ISelectionItemProvider

Constructors

Initializes a new instance of the RibbonTabAutomationPeer class.

C#
public RibbonTabAutomationPeer(object item, RibbonViewAutomationPeer ribbonAutomationPeer)
Parameters:itemobject

The RadRibbonTab that will be associated with newly created object.

ribbonAutomationPeerRibbonViewAutomationPeer

The that is associated with item's parent RadRibbonView.

Properties

ISelectionItemProvider implementation. Gets a value that indicates whether an item is selected.

C#
public bool IsSelected { get; }
Property Value:

true if the element is selected; otherwise false.

SelectionContainer

IRawElementProviderSimple

ISelectionItemProvider implementation. Gets the UI Automation provider that implements ISelectionProvider and acts as the container for the calling object.

C#
public IRawElementProviderSimple SelectionContainer { get; }
Property Value:

The provider that supports ISelectionProvider.

Methods

ISelectionItemProvider implementation. Adds the current element to the collection of selected items.

C#
public void AddToSelection()

Gets the control type for the RadRibbonTab that is associated with this . This method is called by .

C#
protected override AutomationControlType GetAutomationControlTypeCore()
Returns:

AutomationControlType

The enumeration value.

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

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

List<AutomationPeer>

A list of child AutomationPeer elements.

C#
protected override string GetClassNameCore()
Returns:

string

C#
protected override string GetHelpTextCore()
Returns:

string

Gets the item in the that is associated with this .

C#
public object GetItem()
Returns:

object

The data item.

C#
protected override string GetItemStatusCore()
Returns:

string

Returns the text label of the UIElement associated with this AutomationPeer. Called by AutomationPeer.GetName.

C#
protected override string GetNameCore()
Returns:

string

A text label of the element associated with this Automation Peer.

Gets the control pattern for the RadRibbonTab that is associated with this .

C#
public override object GetPattern(PatternInterface patternInterface)
Parameters:patternInterfacePatternInterface

One of the enumeration values.

Returns:

object

The object that implements the pattern interface, or null.

ISelectionItemProvider implementation. Removes the current element from the collection of selected items.

C#
public void RemoveFromSelection()

ISelectionItemProvider implementation. Deselects any selected items and then selects the current element.

C#
public void Select()