Export (0) Print
Expand All
Expand Minimize

ToggleState Enumeration

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

Namespace:  System.Windows.Automation
Assembly:  UIAutomationTypes (in UIAutomationTypes.dll)

[ComVisibleAttribute(true)]
[GuidAttribute("ad7db4af-7166-4478-a402-ad5b77eab2fa")]
public enum ToggleState

Member nameDescription
OffThe UI Automation element is not selected, checked, marked or otherwise activated.
OnThe UI Automation element is selected, checked, marked or otherwise activated.
IndeterminateThe UI Automation element is in an indeterminate state.

The Indeterminate property can be used to indicate whether the user has acted on a control. For example, a check box can appear checked and dimmed, indicating an indeterminate state.

Creating an indeterminate state is different from disabling the control. Consequently, a check box in the indeterminate state can still receive the focus. When the user clicks an indeterminate control the ToggleState cycles to its next value.

A control must cycle through its ToggleState in this order: On, Off and if supported, Indeterminate.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

ADD
Show:
© 2014 Microsoft