ClassRibbonTabAutomationPeer
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
RibbonTabAutomationPeer(object, RibbonViewAutomationPeer)
Initializes a new instance of the RibbonTabAutomationPeer class.
Declaration
public RibbonTabAutomationPeer(object item, RibbonViewAutomationPeer ribbonAutomationPeer)
Parameters
item
The RadRibbonTab that will be associated with newly created object.
ribbonAutomationPeer
The that is associated with item's parent RadRibbonView.
Properties
IsSelected
ISelectionItemProvider implementation. Gets a value that indicates whether an item is selected.
Declaration
public bool IsSelected { get; }
Property Value
true if the element is selected; otherwise false.
SelectionContainer
ISelectionItemProvider implementation. Gets the UI Automation provider that implements ISelectionProvider and acts as the container for the calling object.
Declaration
public IRawElementProviderSimple SelectionContainer { get; }
Property Value
IRawElementProviderSimple
The provider that supports ISelectionProvider.
Methods
AddToSelection()
ISelectionItemProvider implementation. Adds the current element to the collection of selected items.
Declaration
public void AddToSelection()
GetAutomationControlTypeCore()
Gets the control type for the RadRibbonTab that is associated with this . This method is called by .
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
AutomationControlType
The enumeration value.
GetChildrenCore()
Returns child elements collection of the item that is associated with this . This method is called by .
Declaration
[SuppressMessage("Microsoft.Design", "CA1002:DoNotExposeGenericLists")]
protected override List<AutomationPeer> GetChildrenCore()
Returns
List<AutomationPeer>
A list of child AutomationPeer elements.
GetItem()
Gets the item in the that is associated with this .
GetNameCore()
Returns the text label of the UIElement associated with this AutomationPeer. Called by AutomationPeer.GetName.
Declaration
protected override string GetNameCore()
Returns
A text label of the element associated with this Automation Peer.
GetPattern(PatternInterface)
Gets the control pattern for the RadRibbonTab that is associated with this .
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
patternInterface
PatternInterface
One of the enumeration values.
Returns
The object that implements the pattern interface, or null.
RemoveFromSelection()
ISelectionItemProvider implementation. Removes the current element from the collection of selected items.
Declaration
public void RemoveFromSelection()
Select()
ISelectionItemProvider implementation. Deselects any selected items and then selects the current element.
Declaration
public void Select()