ToggleStateProperty Field
Collapse the table of content
Expand the table of content

TogglePattern.ToggleStateProperty Field


Identifies the ToggleStateproperty.

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

public static readonly AutomationProperty ToggleStateProperty

This identifier is used by applications. should use the equivalent field in TogglePatternIdentifiers.GTMTGTMT

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

Legacy Code Example

In the following example, a root element is passed to a function that returns a collection of that are descendants of the root and satisfy a set of property conditions.GTMT

Code snippet is not found. Confirm that the code snippet name 'UIATogglePattern_snip' is correct.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft