Class
RibbonTabAutomationPeer

The AutomationPeer class for the RadRibbonTab control.

Definition

Namespace:Telerik.UI.Automation.Peers

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class RibbonTabAutomationPeer : ItemAutomationPeer, ISelectionItemProvider

Inheritance: objectRibbonTabAutomationPeer

Implements: ISelectionItemProvider

Constructors

RibbonTabAutomationPeer(object, RibbonViewAutomationPeer)

Initializes a new instance of the RibbonTabAutomationPeer class.

Declaration

cs-api-definition
public RibbonTabAutomationPeer(object item, RibbonViewAutomationPeer ribbonAutomationPeer)

Parameters

item

object

The RadRibbonTab that will be associated with newly created RibbonTabAutomationPeer object.

ribbonAutomationPeer

RibbonViewAutomationPeer

The RibbonViewAutomationPeer that is associated with item's parent RadRibbonView.

Properties

IsSelected

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

Declaration

cs-api-definition
public bool IsSelected { get; }

Property Value

bool

true if the element is selected; otherwise false.

SelectionContainer

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

Declaration

cs-api-definition
public IRawElementProviderSimple SelectionContainer { get; }

Property Value

IRawElementProviderSimple

The provider that supports .

Methods

AddToSelection()

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

Declaration

cs-api-definition
public void AddToSelection()

GetAutomationControlTypeCore()

Gets the control type for the RadRibbonTab that is associated with this RibbonTabAutomationPeer.

Declaration

cs-api-definition
protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType

The enumeration value.

GetChildrenCore()

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

Declaration

cs-api-definition
protected override IList<AutomationPeer> GetChildrenCore()

Returns

IList<AutomationPeer>

A list of child elements.

GetClassNameCore()

Declaration

cs-api-definition
protected override string GetClassNameCore()

Returns

string

GetHelpTextCore()

Declaration

cs-api-definition
protected override string GetHelpTextCore()

Returns

string

GetItem()

Gets the item in the that is associated with this RibbonTabAutomationPeer.

Declaration

cs-api-definition
public object GetItem()

Returns

object

The data item.

GetLocalizedControlTypeCore()

Declaration

cs-api-definition
protected override string GetLocalizedControlTypeCore()

Returns

string

GetNameCore()

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

Declaration

cs-api-definition
protected override string GetNameCore()

Returns

string

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

GetPatternCore(PatternInterface)

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

Declaration

cs-api-definition
protected override object GetPatternCore(PatternInterface patternInterface)

Parameters

patternInterface

PatternInterface

One of the enumeration values.

Returns

object

The object that implements the pattern interface, or null.

RemoveFromSelection()

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

Declaration

cs-api-definition
public void RemoveFromSelection()

Select()

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

Declaration

cs-api-definition
public void Select()