Class TabItemAutomationPeer
Exposes TabItem types to UI automation.
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.Controls.dll
Syntax
public class TabItemAutomationPeer : ItemAutomationPeer, IDependencyObject, ISelectionItemProvider
Constructors
| Improve this Doc View SourceTabItemAutomationPeer(Object)
Initializes a new instance of the TabItemAutomationPeer class.
Declaration
public TabItemAutomationPeer(object owner)
Parameters
Type | Name | Description |
---|---|---|
System.Object | owner | The TabItem to associate with the TabItemAutomationPeer. |
Methods
| Improve this Doc View SourceGetAutomationControlTypeCore()
Gets the control type for the element that is associated with the UI Automation peer.
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type | Description |
---|---|
AutomationControlType | The control type. |
Overrides
| Improve this Doc View SourceGetChildrenCore()
Returns the ChildrenCore.
Declaration
protected override List<AutomationPeer> GetChildrenCore()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<AutomationPeer> | List of AutomationPeers for the Children. |
Overrides
| Improve this Doc View SourceGetClassNameCore()
Called by GetClassName that gets a human readable name that, in addition to AutomationControlType, differentiates the control represented by this AutomationPeer.
Declaration
protected override string GetClassNameCore()
Returns
Type | Description |
---|---|
System.String | The string that contains the name. |
Overrides
| Improve this Doc View SourceGetNameCore()
Gets the text label of the TabItem that is associated with this TabItemAutomationPeer. Called by GetName.
Declaration
protected override string GetNameCore()
Returns
Type | Description |
---|---|
System.String | The string that contains the label. If set, this method returns the value of the Name property; otherwise this method will return the value of the Header property. |
Overrides
| Improve this Doc View SourceGetPattern(PatternInterface)
Gets the control pattern for the TabItem that is associated with this TabItemAutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
Type | Name | Description |
---|---|---|
PatternInterface | patternInterface | One of the enumeration values. |
Returns
Type | Description |
---|---|
System.Object | The object that implements the pattern interface, or null if the specified pattern interface is not implemented by this peer. |
Overrides
| Improve this Doc View SourceIsKeyboardFocusableCore()
Gets a value that indicates whether the element can accept keyboard focus.
Declaration
protected override bool IsKeyboardFocusableCore()
Returns
Type | Description |
---|---|
System.Boolean | True if the element can accept keyboard focus; otherwise, false. |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceISelectionItemProvider.AddToSelection()
Adds the current element to the collection of selected items.
Declaration
void ISelectionItemProvider.AddToSelection()
Exceptions
Type | Condition |
---|---|
ElementNotEnabledException | Owner element is not enabled. |
ISelectionItemProvider.IsSelected
Gets a value indicating whether an item is selected.
Declaration
bool ISelectionItemProvider.IsSelected { get; }
Returns
Type | Description |
---|---|
System.Boolean | True if the element is selected; otherwise, false. |
ISelectionItemProvider.RemoveFromSelection()
Removes the current element from the collection of selected items.
Declaration
void ISelectionItemProvider.RemoveFromSelection()
ISelectionItemProvider.Select()
Deselects any selected items and then selects the current element.
Declaration
void ISelectionItemProvider.Select()
Exceptions
Type | Condition |
---|---|
ElementNotEnabledException | Owner element is not enabled. |
ISelectionItemProvider.SelectionContainer
Gets the UI automation provider that implements ISelectionProvider and acts as the container for the calling object.
Declaration
IRawElementProviderSimple ISelectionItemProvider.SelectionContainer { get; }
Returns
Type | Description |
---|---|
IRawElementProviderSimple | The provider that supports ISelectionProvider. |