Class TabView
Defines a
Inherited Members
Namespace: Legerity.Windows.Elements.WinUI
Assembly: Legerity.WinUI.dll
Syntax
public class TabView : WindowsElementWrapper
Constructors
| Improve this Doc View SourceTabView(WindowsElement)
Initializes a new instance of the TabView class.
Declaration
public TabView(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Properties
| Improve this Doc View SourceAddTabButton
Gets the element associated with the add tab button.
Declaration
public virtual Button AddTabButton { get; }
Property Value
Type | Description |
---|---|
Button |
SelectedItem
Gets the element associated with the currently selected item.
Declaration
public virtual AppiumWebElement SelectedItem { get; }
Property Value
Type | Description |
---|---|
AppiumWebElement |
Tabs
Gets the collection of items associated with the pivot.
Declaration
public virtual ReadOnlyCollection<AppiumWebElement> Tabs { get; }
Property Value
Type | Description |
---|---|
ReadOnlyCollection<AppiumWebElement> |
Methods
| Improve this Doc View SourceCloseTab(String)
Closes a tab in the view with the specified item name.
Declaration
public virtual void CloseTab(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the item to close. |
CloseTabByPartialName(String)
Closes a tab in the view with the specified partial item name.
Declaration
public virtual void CloseTabByPartialName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The partial name of the item to close. |
CreateTab()
Adds a new tab to the tab view.
Declaration
public virtual void CreateTab()
SelectTab(String)
Clicks on a tab in the view with the specified item name.
Declaration
public virtual void SelectTab(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the item to click. |
SelectTabByPartialName(String)
Clicks on a tab in the view with the specified partial item name.
Declaration
public virtual void SelectTabByPartialName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The partial name of the item to click. |
Operators
| Improve this Doc View SourceImplicit(AppiumWebElement to TabView)
Allows conversion of a
Declaration
public static implicit operator TabView(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
TabView | The TabView. |
Implicit(RemoteWebElement to TabView)
Allows conversion of a
Declaration
public static implicit operator TabView(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
TabView | The TabView. |
Implicit(WindowsElement to TabView)
Allows conversion of a
Declaration
public static implicit operator TabView(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Returns
Type | Description |
---|---|
TabView | The TabView. |