Note

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

Access to this page requires authorization. You can try .

TogglePattern Class

Definition

Namespace:
System.Windows.Automation
Assembly:
UIAutomationClient.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.

Represents a control that can cycle through a set of states and maintain a state once set.

public ref class TogglePattern : System::Windows::Automation::BasePattern
public class TogglePattern : System.Windows.Automation.BasePattern
type TogglePattern = class
 inherit BasePattern
Public Class TogglePattern
Inherits BasePattern
Inheritance
TogglePattern

Fields

Name Description
Pattern

Identifies the TogglePattern control pattern.

ToggleStateProperty

Identifies the ToggleState property.

Properties

Name Description
Cached

Gets the cached UI Automation property values for this TogglePattern.

Current

Gets the current UI Automation property values for this TogglePattern.

Methods

Name Description
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Toggle()

Cycles through the toggle states of an AutomationElement.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also


Feedback

Was this page helpful?