Class AppBarToggleButton
Defines a
Implements
IElementWrapper<WindowsElement>
Inherited Members
Namespace: Legerity.Windows.Elements.Core
Assembly: Legerity.Windows.dll
Syntax
public class AppBarToggleButton : AppBarButton, IElementWrapper<WindowsElement>
Constructors
| Improve this Doc View SourceAppBarToggleButton(WindowsElement)
Initializes a new instance of the AppBarToggleButton class.
Declaration
public AppBarToggleButton(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Properties
| Improve this Doc View SourceIsOn
Gets a value indicating whether the toggle button is in the on position.
Declaration
public virtual bool IsOn { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceToggleOff()
Toggles the button off.
Declaration
public virtual void ToggleOff()
ToggleOn()
Toggles the button on.
Declaration
public virtual void ToggleOn()
Operators
| Improve this Doc View SourceImplicit(AppiumWebElement to AppBarToggleButton)
Allows conversion of a
Declaration
public static implicit operator AppBarToggleButton(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
AppBarToggleButton | The AppBarToggleButton. |
Implicit(RemoteWebElement to AppBarToggleButton)
Allows conversion of a
Declaration
public static implicit operator AppBarToggleButton(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
AppBarToggleButton | The AppBarToggleButton. |
Implicit(WindowsElement to AppBarToggleButton)
Allows conversion of a
Declaration
public static implicit operator AppBarToggleButton(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Returns
Type | Description |
---|---|
AppBarToggleButton | The AppBarToggleButton. |