BaseToggleProvider
Defines the Toggle pattern contract and conversions from WinForms and Telerik toggle states to UI Automation states.
Definition
Namespace:Telerik.WinControls.UIAutomation
Assembly:Telerik.WinControls.UI.dll
Syntax:
public abstract class BaseToggleProvider : IToggleProvider
Inheritance: objectBaseToggleProvider
Implements:
Constructors
protected BaseToggleProvider()
Properties
Gets the current state in UI Automation's toggle-state representation.
public abstract ToggleState ToggleState { get; }
Implements:
Methods
Changes the associated element to its next toggle state.
public abstract void Toggle()
Implements:
Converts a WinForms check state to its UI Automation equivalent; values other than Checked and Indeterminate map to Off.
public static ToggleState ToUIAToggleState(CheckState state)
The check state to convert.
Returns:The corresponding UI Automation toggle state.
Converts a Telerik toggle state to its UI Automation equivalent; values other than On and Indeterminate map to Off.
public static ToggleState ToUIAToggleState(ToggleState state)
The Telerik toggle state to convert.
Returns:The corresponding UI Automation toggle state.