The AutomationPeer class for the RadRibbonTab control.
Definition
Namespace:Telerik.Windows.Automation.Peers
Assembly:Telerik.Windows.Controls.RibbonView.dll
Syntax:
public class RibbonTabAutomationPeer : ItemAutomationPeer, ISelectionItemProvider
Inheritance: objectRibbonTabAutomationPeer
Implements:
Constructors
Initializes a new instance of the RibbonTabAutomationPeer class.
public RibbonTabAutomationPeer(object item, RibbonViewAutomationPeer ribbonAutomationPeer)
The RadRibbonTab that will be associated with newly created object.
ribbonAutomationPeerRibbonViewAutomationPeerThe that is associated with item's parent RadRibbonView.
Properties
ISelectionItemProvider implementation. Gets a value that indicates whether an item is selected.
public bool IsSelected { get; }
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.
public IRawElementProviderSimple SelectionContainer { get; }
The provider that supports ISelectionProvider.
Methods
ISelectionItemProvider implementation. Adds the current element to the collection of selected items.
public void AddToSelection()
Gets the control type for the RadRibbonTab that is associated with this . This method is called by .
protected override AutomationControlType GetAutomationControlTypeCore()
AutomationControlType
The enumeration value.
Returns child elements collection of the item that is associated with this . This method is called by .
protected override List<AutomationPeer> GetChildrenCore()
List<AutomationPeer>
A list of child AutomationPeer elements.
Gets the item in the that is associated with this .
Returns the text label of the UIElement associated with this AutomationPeer. Called by AutomationPeer.GetName.
protected override string GetNameCore()
A text label of the element associated with this Automation Peer.
Gets the control pattern for the RadRibbonTab that is associated with this .
public override object GetPattern(PatternInterface patternInterface)
One of the enumeration values.
Returns:The object that implements the pattern interface, or null.
ISelectionItemProvider implementation. Removes the current element from the collection of selected items.
public void RemoveFromSelection()
ISelectionItemProvider implementation. Deselects any selected items and then selects the current element.
public void Select()