Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ToggleState Enum

Definition

Namespace:
System.Windows.Automation
Assembly:
UIAutomationTypes.dll

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

public enum class ToggleState
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("ad7db4af-7166-4478-a402-ad5b77eab2fa")]
public enum ToggleState
public enum ToggleState
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("ad7db4af-7166-4478-a402-ad5b77eab2fa")>]
type ToggleState = 
type ToggleState = 
Public Enum ToggleState
Inheritance
ToggleState
Attributes

Fields

Name Value Description
Off 0

The UI Automation element is not 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. Indeterminate 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.

Remarks

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

Applies to


Feedback

Was this page helpful?