Class RibbonTabAutomationPeer
The AutomationPeer class for the RadRibbonTab control.
Inheritance
Namespace: Telerik.Windows.Automation.Peers
Assembly: Telerik.Windows.Controls.RibbonView.dll
Syntax
public class RibbonTabAutomationPeer : ItemAutomationPeer, ISelectionItemProvider
Constructors
RibbonTabAutomationPeer(Object, RibbonViewAutomationPeer)
Initializes a new instance of the RibbonTabAutomationPeer class.
Declaration
public RibbonTabAutomationPeer(object item, RibbonViewAutomationPeer ribbonAutomationPeer)
Parameters
System.Object
item
The RadRibbonTab that will be associated with newly created Telerik.Windows.Controls.RibbonTabAutomationPeer object. |
RibbonViewAutomationPeer
ribbonAutomationPeer
The Telerik.Windows.Controls.RibbonViewAutomationPeer 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
System.Boolean
true if the element is selected; otherwise false. |
SelectionContainer
ISelectionItemProvider implementation. Gets the UI Automation provider that implements System.Windows.Automation.Provider.ISelectionProvider and acts as the container for the calling object.
Declaration
public IRawElementProviderSimple SelectionContainer { get; }
Property Value
System.Windows.Automation.Provider.IRawElementProviderSimple
The provider that supports System.Windows.Automation.Provider.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 Telerik.Windows.Controls.RibbonTabAutomationPeer. This method is called by System.Windows.Automation.Peers.AutomationPeer.GetAutomationControlType.
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
System.Windows.Automation.Peers.AutomationControlType
The System.Windows.Automation.Peers.AutomationControlType.TabItem enumeration value. |
GetChildrenCore()
Returns child elements collection of the item that is associated with this Telerik.Windows.Controls.RibbonTabAutomationPeer. This method is called by System.Windows.Automation.Peers.AutomationPeer.GetChildren.
Declaration
protected override List<AutomationPeer> GetChildrenCore()
Returns
System.Collections.Generic.List<System.Windows.Automation.Peers.AutomationPeer>
A list of child System.Windows.Automation.Peers.AutomationPeer elements. |
GetClassNameCore()
Declaration
protected override string GetClassNameCore()
Returns
System.String
|
GetHelpTextCore()
Declaration
protected override string GetHelpTextCore()
Returns
System.String
|
GetItem()
Gets the item in the that is associated with this Telerik.Windows.Controls.RibbonTabAutomationPeer.
Declaration
public object GetItem()
Returns
System.Object
The data item. |
GetItemStatusCore()
Declaration
protected override string GetItemStatusCore()
Returns
System.String
|
GetNameCore()
Returns the text label of the System.Windows.UIElement associated with this AutomationPeer. Called by AutomationPeer.GetName.
Declaration
protected override string GetNameCore()
Returns
System.String
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 Telerik.Windows.Controls.RibbonTabAutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
System.Windows.Automation.Peers.PatternInterface
patternInterface
One of the enumeration values. |
Returns
System.Object
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()