TogglePattern 類別

定義

表示的控制項可以循環取得狀態集和維護已設定的狀態集。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
繼承
TogglePattern

欄位

Pattern

識別 TogglePattern 控制項模式。Identifies the TogglePattern control pattern.

ToggleStateProperty

識別 ToggleState 屬性。Identifies the ToggleState property.

屬性

Cached

取得這個的快取消費者介面自動化屬性值 TogglePatternGets the cached UI Automation property values for this TogglePattern.

Current

取得這個的目前消費者介面自動化屬性值 TogglePatternGets the current UI Automation property values for this TogglePattern.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
Toggle()

循環使用 AutomationElement 的切換狀態。Cycles through the toggle states of an AutomationElement.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於

另請參閱