Dela via


ToggleState Enum

Definition

Contains values that specify the ToggleState of a UI Automation element.

public enum class ToggleState
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class ToggleState
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum ToggleState
Public Enum ToggleState
Inheritance
ToggleState
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Off 0

The UI Automation element isn't selected, checked, marked, or otherwise activated.

On 1

The UI Automation element is selected, checked, marked, or otherwise activated.

Indeterminate 2

The UI Automation element is in an indeterminate state.

Applies to