Class TabControlAutomationPeer
Exposes TabControl types to UI automation.
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.Controls.dll
Syntax
public class TabControlAutomationPeer : ItemsControlAutomationPeer, IDependencyObject, ISelectionProvider
Constructors
| Improve this Doc View SourceTabControlAutomationPeer(TabControl)
Initializes a new instance of the TabControlAutomationPeer class.
Declaration
public TabControlAutomationPeer(TabControl owner)
Parameters
Type | Name | Description |
---|---|---|
TabControl | owner | The TabControl that is associated with this TabControlAutomationPeer. |
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 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 SourceGetClickablePointCore()
This method is called by GetClickablePoint().
Declaration
protected override Point GetClickablePointCore()
Returns
Type | Description |
---|---|
Point | A Point containing System.Double.NaN, System.Double.NaN; the only clickable points in a TabControl are the child TabItem elements. |
Overrides
| Improve this Doc View SourceGetPattern(PatternInterface)
Gets the control pattern for the TabControl that is associated with this TabControlAutomationPeer.
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 SourceISelectionProvider.CanSelectMultiple
Gets a value indicating whether the UI automation provider allows more than one child element to be selected concurrently.
Declaration
bool ISelectionProvider.CanSelectMultiple { get; }
Returns
Type | Description |
---|---|
System.Boolean | True if multiple selection is allowed; otherwise, false. |
ISelectionProvider.GetSelection()
Retrieves a UI automation provider for each child element that is selected.
Declaration
IRawElementProviderSimple[] ISelectionProvider.GetSelection()
Returns
Type | Description |
---|---|
IRawElementProviderSimple[] | An array of UI automation providers. |
ISelectionProvider.IsSelectionRequired
Gets a value indicating whether the UI automation provider requires at least one child element to be selected.
Declaration
bool ISelectionProvider.IsSelectionRequired { get; }
Returns
Type | Description |
---|---|
System.Boolean | True if selection is required; otherwise, false. |