Class ToggleSwitch
Defines a
Implements
IElementWrapper<WindowsElement>
Inherited Members
Namespace: Legerity.Windows.Elements.Core
Assembly: Legerity.Windows.dll
Syntax
public class ToggleSwitch : WindowsElementWrapper, IElementWrapper<WindowsElement>
Constructors
| Improve this Doc View SourceToggleSwitch(WindowsElement)
Initializes a new instance of the ToggleSwitch class.
Declaration
public ToggleSwitch(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Properties
| Improve this Doc View SourceIsOn
Gets a value indicating whether the toggle switch 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 switch off.
Declaration
public virtual void ToggleOff()
ToggleOn()
Toggles the switch on.
Declaration
public virtual void ToggleOn()
Operators
| Improve this Doc View SourceImplicit(AppiumWebElement to ToggleSwitch)
Allows conversion of a
Declaration
public static implicit operator ToggleSwitch(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
ToggleSwitch | The ToggleSwitch. |
Implicit(RemoteWebElement to ToggleSwitch)
Allows conversion of a
Declaration
public static implicit operator ToggleSwitch(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
ToggleSwitch | The ToggleSwitch. |
Implicit(WindowsElement to ToggleSwitch)
Allows conversion of a
Declaration
public static implicit operator ToggleSwitch(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Returns
Type | Description |
---|---|
ToggleSwitch | The ToggleSwitch. |