Class RibbonTabAutomationPeer
Class that provides UI Automation support of RibbonTabAutomationPeer .
Inheritance
Implements
Namespace: Syncfusion.Windows.Controls.Tools.AutomationPeer
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class RibbonTabAutomationPeer : ItemsControlAutomationPeer, ISelectionItemProvider
Constructors
RibbonTabAutomationPeer(ItemsControl)
Initializes a new instance of the RibbonMenuItemAutomationPeer class.
Declaration
public RibbonTabAutomationPeer(ItemsControl ribbonTab)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Controls.ItemsControl | ribbonTab | An instance of ItemsControl |
Properties
IsSelected
Gets the value to check whether RibbonTab selected or not.
Declaration
public bool IsSelected { get; }
Property Value
| Type |
|---|
| System.Boolean |
SelectionContainer
Gets the methods and properties
Declaration
public IRawElementProviderSimple SelectionContainer { get; }
Property Value
| Type |
|---|
| System.Windows.Automation.Provider.IRawElementProviderSimple |
Methods
AddToSelection()
Throws NotImplementedException
Declaration
public void AddToSelection()
CreateItemAutomationPeer(Object)
When overridden in a derived class, creates a new instance of the ItemAutomationPeer for a data item in the Items collection of this ItemsControl.
Declaration
protected override ItemAutomationPeer CreateItemAutomationPeer(object item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | item | The data item |
Returns
| Type | Description |
|---|---|
| System.Windows.Automation.Peers.ItemAutomationPeer | The new ItemAutomationPeer created. |
GetAutomationControlTypeCore()
Gets the control type for the System.Windows.UIElement that is associated with this System.Windows.Automation.Peers.UIElementAutomationPeer. This method is called by System.Windows.Automation.Peers.AutomationPeer.GetAutomationControlType.
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
| Type | Description |
|---|---|
| System.Windows.Automation.Peers.AutomationControlType | The System.Windows.Automation.Peers.AutomationControlType.Custom enumeration value. |
GetChildrenCore()
Retrieves the child automation peers of this ribbon tab. The ribbon bars hosted by the tab are exposed as children of the tab so that the automation hierarchy matches the visual hierarchy.
Declaration
protected override List<AutomationPeer> GetChildrenCore()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.Windows.Automation.Peers.AutomationPeer> | A list of Syncfusion.Windows.Controls.Tools.AutomationPeer instances representing the ribbon bars of the tab. |
GetClassNameCore()
Gets the name of the System.Windows.UIElement that is associated with this System.Windows.Automation.Peers.UIElementAutomationPeer. This method is called by System.Windows.Automation.Peers.AutomationPeer.GetClassName.
Declaration
protected override string GetClassNameCore()
Returns
| Type | Description |
|---|---|
| System.String | An System.String.Empty string. |
GetHelpTextCore()
Provides the peer's behavior when a UI Automation client calls GetHelpText or an equivalent UI Automation client API.
Declaration
protected override string GetHelpTextCore()
Returns
| Type | Description |
|---|---|
| System.String | The help text. |
GetItemStatusCore()
Returns a string that describes the status of the associated RibbonTab for UI Automation.
Declaration
protected override string GetItemStatusCore()
Returns
| Type | Description |
|---|---|
| System.String | A string representing the current status of the RibbonTab, including its caption, checked state, context color, context tab group presence, and cancel ribbon state. |
GetNameCore()
Provides the peer's behavior when a UI Automation client calls GetName or an equivalent UI Automation client API.
Declaration
protected override string GetNameCore()
Returns
| Type | Description |
|---|---|
| System.String | The name as used by assistive technoloGetClassNameCoreies and other UI Automation clients. |
GetPattern(PatternInterface)
Gets the control pattern for the System.Windows.UIElement that is associated with this System.Windows.Automation.Peers.UIElementAutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Automation.Peers.PatternInterface | patternInterface | A value from the enumeration. |
Returns
| Type | Description |
|---|---|
| System.Object | returns the pattern |
RemoveFromSelection()
Removes from selection
Declaration
public void RemoveFromSelection()
Select()
Selectes the RibbonTab
Declaration
public void Select()