Class MenuBar
Defines a
Inherited Members
Namespace: Legerity.Windows.Elements.WinUI
Assembly: Legerity.WinUI.dll
Syntax
public class MenuBar : WindowsElementWrapper
Constructors
| Improve this Doc View SourceMenuBar(WindowsElement)
Initializes a new instance of the MenuBar class.
Declaration
public MenuBar(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Properties
| Improve this Doc View SourceMenuItems
Gets the UI components associated with the menu items.
Declaration
public virtual IEnumerable<MenuBarItem> MenuItems { get; }
Property Value
Type | Description |
---|---|
IEnumerable<MenuBarItem> |
Methods
| Improve this Doc View SourceClickOption(String)
Clicks on a child menu option with the specified item name.
Declaration
public virtual MenuBarItem ClickOption(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the item to click. |
Returns
Type | Description |
---|---|
MenuBarItem | The clicked MenuBarItem. |
ClickOptionByPartialName(String)
Clicks on a child menu option with the specified partial item name.
Declaration
public virtual MenuBarItem ClickOptionByPartialName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The partial name of the item to click. |
Returns
Type | Description |
---|---|
MenuBarItem | The clicked MenuBarItem. |
Operators
| Improve this Doc View SourceImplicit(AppiumWebElement to MenuBar)
Allows conversion of a
Declaration
public static implicit operator MenuBar(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
MenuBar | The MenuBar. |
Implicit(RemoteWebElement to MenuBar)
Allows conversion of a
Declaration
public static implicit operator MenuBar(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
MenuBar | The MenuBar. |
Implicit(WindowsElement to MenuBar)
Allows conversion of a
Declaration
public static implicit operator MenuBar(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Returns
Type | Description |
---|---|
MenuBar | The MenuBar. |