Class ToggleButton
Defines a
Implements
IElementWrapper<WindowsElement>
Inherited Members
Namespace: Legerity.Windows.Elements.Core
Assembly: Legerity.Windows.dll
Syntax
public class ToggleButton : Button, IElementWrapper<WindowsElement>
Constructors
| Improve this Doc View SourceToggleButton(WindowsElement)
Initializes a new instance of the ToggleButton class.
Declaration
public ToggleButton(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 ToggleButton)
Allows conversion of a
Declaration
public static implicit operator ToggleButton(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
ToggleButton | The ToggleButton. |
Implicit(RemoteWebElement to ToggleButton)
Allows conversion of a
Declaration
public static implicit operator ToggleButton(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
ToggleButton | The ToggleButton. |
Implicit(WindowsElement to ToggleButton)
Allows conversion of a
Declaration
public static implicit operator ToggleButton(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Returns
Type | Description |
---|---|
ToggleButton | The ToggleButton. |