語言

ToggleButtonAutomationPeer 類別

定義

ToggleButton 類型暴露於使用者介面自動化。

public ref class ToggleButtonAutomationPeer : System::Windows::Automation::Peers::ButtonBaseAutomationPeer, System::Windows::Automation::Provider::IToggleProvider
public class ToggleButtonAutomationPeer : System.Windows.Automation.Peers.ButtonBaseAutomationPeer, System.Windows.Automation.Provider.IToggleProvider
type ToggleButtonAutomationPeer = class
    inherit ButtonBaseAutomationPeer
    interface IToggleProvider
Public Class ToggleButtonAutomationPeer
Inherits ButtonBaseAutomationPeer
Implements IToggleProvider
繼承
衍生
實作

建構函式

名稱 Description
ToggleButtonAutomationPeer(ToggleButton)

初始化 ToggleButtonAutomationPeer 類別的新執行個體。

屬性

名稱 Description
Dispatcher

了解 Dispatcher 這與此 DispatcherObject 有關。

(繼承來源 DispatcherObject)
EventsSource

取得或設定 一個 AutomationPeer ,作為所有事件 AutomationPeer來源,回報給自動化客戶端。

(繼承來源 AutomationPeer)
IsHwndHost

會獲得一個值,表示與此 AutomationPeer 元素相關的元素是否在 hwnds Windows Presentation Foundation(WPF)中運行。

(繼承來源 AutomationPeer)
Owner

明白 UIElement 了與此 UIElementAutomationPeer相關聯的那個。

(繼承來源 UIElementAutomationPeer)

方法

名稱 Description
CheckAccess()

判斷呼叫執行緒是否能存取此 DispatcherObject。

(繼承來源 DispatcherObject)
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetAcceleratorKey()

取得與 UI 自動化對等元件相關的加速器鍵組合。

(繼承來源 AutomationPeer)
GetAcceleratorKeyCore()

取得與此 ButtonBaseAutomationPeer元素相關的加速鍵。 由 GetAcceleratorKey() 呼叫。

(繼承來源 ButtonBaseAutomationPeer)
GetAccessKey()

取得與自動化對等端相關元素的存取金鑰。

(繼承來源 AutomationPeer)
GetAccessKeyCore()

取得與此UIElement相關聯的UIElementAutomationPeer存取金鑰。 此方法稱為 GetAccessKey()。

(繼承來源 UIElementAutomationPeer)
GetAutomationControlType()

取得與 UI 自動化對等單位相關元素的控制類型。

(繼承來源 AutomationPeer)
GetAutomationControlTypeCore()

取得與此ToggleButton相關聯的控制類型ToggleButtonAutomationPeer。 由 GetAutomationControlType() 呼叫。

GetAutomationId()

取得 AutomationId 與自動化對等節點相關聯的元素。

(繼承來源 AutomationPeer)
GetAutomationIdCore()

得到與此AutomationId相關元素的 。ButtonBaseAutomationPeer 由 GetAutomationId() 呼叫。

(繼承來源 ButtonBaseAutomationPeer)
GetBoundingRectangle()

取得 Rect 代表與自動化對等端相關元素螢幕座標的物件。

(繼承來源 AutomationPeer)
GetBoundingRectangleCore()

得到 Rect ,代表與此UIElement相關聯的邊界矩形UIElementAutomationPeer。 此方法稱為 GetBoundingRectangle()。

(繼承來源 UIElementAutomationPeer)
GetChildren()

取得在 UI 自動化樹中作為自動化對等節點直接子元素的集合 GetChildren() 。

(繼承來源 AutomationPeer)
GetChildrenCore()

取得與此UIElement相關聯的子元素UIElementAutomationPeer集合。 此方法稱為 GetChildren()。

(繼承來源 UIElementAutomationPeer)
GetClassName()

會獲得一個名稱,該名稱用於區 AutomationControlType分由 AutomationPeer所代表的控制點。

(繼承來源 AutomationPeer)
GetClassNameCore()

取得與此ToggleButton相關聯的ToggleButtonAutomationPeer名稱。 由 GetClassName() 呼叫。

GetClickablePoint()

在與回應滑鼠點擊的自動化對等節點相關元素上取得 a Point 。

(繼承來源 AutomationPeer)
GetClickablePointCore()

得到 Point 一個代表可點擊空間的空間,該空間 UIElement 與此 UIElementAutomationPeer相關聯。 此方法稱為 GetClickablePoint()。

(繼承來源 UIElementAutomationPeer)
GetControlledPeers()

提供 UI 自動化,列出受此 AutomationPeer影響或控制的元素。

(繼承來源 AutomationPeer)
GetControlledPeersCore()

當在衍生類別中覆寫時,會提供一個受此 AutomationPeer影響或控制元素的 UI 自動化清單。

(繼承來源 AutomationPeer)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetHeadingLevel()

ToggleButton 類型暴露於使用者介面自動化。

(繼承來源 AutomationPeer)
GetHeadingLevelCore()

ToggleButton 類型暴露於使用者介面自動化。

(繼承來源 UIElementAutomationPeer)
GetHelpText()

取得描述與自動化對等端相關控制項功能的文字。

(繼承來源 AutomationPeer)
GetHelpTextCore()

取得描述與此ContentElement相關聯功能的ContentElementAutomationPeer字串。 由 GetHelpText() 呼叫。

(繼承來源 FrameworkElementAutomationPeer)
GetHostRawElementProviderCore()

告訴 UI 自動化在 UI 自動化樹中,該將 Windows Presentation Foundation(WPF)元素託管 hwnd 在哪裡。

(繼承來源 AutomationPeer)
GetItemStatus()

會取得傳達與此自動化對等端相關元素的視覺狀態的文字。

(繼承來源 AutomationPeer)
GetItemStatusCore()

會得到一個字串,用來傳達與此UIElement相關聯的視覺狀態UIElementAutomationPeer。 此方法稱為 GetItemStatus()。

(繼承來源 UIElementAutomationPeer)
GetItemType()

會得到一個字串,描述物件代表哪種類型的物品。

(繼承來源 AutomationPeer)
GetItemTypeCore()

會得到一個人類可讀的字串,包含 for UIElement this UIElementAutomationPeer 所代表的項目類型。 此方法稱為 GetItemType()。

(繼承來源 UIElementAutomationPeer)
GetLabeledBy()

取得AutomationPeerLabel針對元素的 。

(繼承來源 AutomationPeer)
GetLabeledByCore()

取得 AutomationPeerLabelContentElementContentElementAutomationPeer針對該目標的 。 由 GetLabeledBy() 呼叫。

(繼承來源 FrameworkElementAutomationPeer)
GetLiveSetting()

取得與此自動化對等端相關聯的即時區域的通知特性。

(繼承來源 AutomationPeer)
GetLiveSettingCore()

取得與此UIElement物件相關聯的活區域UIElementAutomationPeer的通知特性。 此方法稱為 GetLiveSetting()。

(繼承來源 UIElementAutomationPeer)
GetLocalizedControlType()

會獲得一個人類可讀的在地字串,代表 AutomationControlType 與此自動化對等體關聯的控制值。

(繼承來源 AutomationPeer)
GetLocalizedControlTypeCore()

當在導出類別中被覆寫時,稱為 GetLocalizedControlType()。

(繼承來源 AutomationPeer)
GetName()

會收到描述與此自動化對等端相關元素的文字。

(繼承來源 AutomationPeer)
GetNameCore()

取得與此 ButtonBaseAutomationPeer元素相關聯的類別名稱。 由 GetName() 呼叫。

(繼承來源 ButtonBaseAutomationPeer)
GetOrientation()

會獲得一個顯示明確控制方向的值(如果有的話)。

(繼承來源 AutomationPeer)
GetOrientationCore()

會得到一個值,表示 UIElement 是否與此 UIElementAutomationPeer 相關聯的 該值朝特定方向排列。 此方法稱為 GetOrientation()。

(繼承來源 UIElementAutomationPeer)
GetParent()

明白 AutomationPeer 那是這個 AutomationPeer的家長。

(繼承來源 AutomationPeer)
GetPattern(PatternInterface)

取得與此ToggleButton相關聯的ToggleButtonAutomationPeer控制模式。

GetPeerFromPoint(Point)

從指定點得到 a AutomationPeer 。

(繼承來源 AutomationPeer)
GetPeerFromPointCore(Point)

當在導出類別中覆寫時,從 中被調用為 GetPeerFromPoint(Point)。

(繼承來源 AutomationPeer)
GetPositionInSet()

試圖取得該房產的價值 PositionInSet 。

(繼承來源 AutomationPeer)
GetPositionInSetCore()

讀取 PositionInSetProperty 並回傳附加財產的價值 PositionInSet 。

(繼承來源 UIElementAutomationPeer)
GetSizeOfSet()

試圖取得該房產的價值 SizeOfSet 。

(繼承來源 AutomationPeer)
GetSizeOfSetCore()

提供 使用者介面自動化 的 SizeOfSet 屬性值。

(繼承來源 UIElementAutomationPeer)
GetType()

取得目前實例的 Type。

(繼承來源 Object)
HasKeyboardFocus()

會得到一個值,表示與此自動化對等端相關的元素目前是否具有鍵盤焦點。

(繼承來源 AutomationPeer)
HasKeyboardFocusCore()

會得到一個值,表示 UIElement 該 是否與此 UIElementAutomationPeer 有關,目前鍵盤輸入聚焦點。 此方法稱為 HasKeyboardFocus()。

(繼承來源 UIElementAutomationPeer)
InvalidatePeer()

觸發對 主要屬性 AutomationPeer 的重新計算,若屬性變更,則向 PropertyChanged 自動化客戶端發出通知。

(繼承來源 AutomationPeer)
IsContentElement()

會取得一個值,指示與此自動化對端相關的元素是否包含呈現給使用者的資料。

(繼承來源 AutomationPeer)
IsContentElementCore()

會得到一個值,表示 that 是否 UIElement 與此相關聯 UIElementAutomationPeer ,該元素包含呈現給使用者的資料。 此方法稱為 IsContentElement()。

(繼承來源 UIElementAutomationPeer)
IsControlElement()

獲得一個值,表示使用者是否理解該元素為互動元素,或是對圖形介面控制的邏輯結構有貢獻。

(繼承來源 AutomationPeer)
IsControlElementCore()

會取得或設定一個值,指示 UIElement 與此 UIElementAutomationPeer 相關聯的 該 是否被終端使用者理解為互動式。 使用者也可以選擇性地將 理解 UIElement 為對圖形介面中控制邏輯結構的貢獻。 此方法稱為 IsControlElement()。

(繼承來源 UIElementAutomationPeer)
IsDialog()

ToggleButton 類型暴露於使用者介面自動化。

(繼承來源 AutomationPeer)
IsDialogCore()

ToggleButton 類型暴露於使用者介面自動化。

(繼承來源 UIElementAutomationPeer)
IsEnabled()

會獲得一個值,表示與此自動化對等端相關的元素是否支援互動。

(繼承來源 AutomationPeer)
IsEnabledCore()

會得到一個值,表示與此UIElement相關聯的 是否UIElementAutomationPeer能接受鍵盤焦點。 此方法稱為 IsKeyboardFocusable()。

(繼承來源 UIElementAutomationPeer)
IsKeyboardFocusable()

會得到一個表示元素是否能接受鍵盤聚焦的值。

(繼承來源 AutomationPeer)
IsKeyboardFocusableCore()

會得到一個值,表示與此UIElement相關聯的 是否UIElementAutomationPeer能接受鍵盤焦點。 此方法稱為 IsKeyboardFocusable()。

(繼承來源 UIElementAutomationPeer)
IsOffscreen()

會得到一個表示元素是否已離開螢幕的值。

(繼承來源 AutomationPeer)
IsOffscreenCore()

會得到一個值,表示與此UIElement相關聯的 that 是否UIElementAutomationPeer已不在螢幕上。 此方法稱為 IsOffscreen()。

(繼承來源 UIElementAutomationPeer)
IsPassword()

會得到一個值,表示該元素是否包含敏感內容。

(繼承來源 AutomationPeer)
IsPasswordCore()

會得到一個值,指示 UIElement 是否與此 UIElementAutomationPeer 相關內容相關聯。 此方法稱為 IsPassword()。

(繼承來源 UIElementAutomationPeer)
IsRequiredForForm()

會得到一個值,指示該對應元素是否必須在表單上填寫。

(繼承來源 AutomationPeer)
IsRequiredForFormCore()

會得到一個值,表示 UIElement 是否需要在表單上填寫與此 UIElementAutomationPeer 相關內容。 此方法稱為 IsRequiredForForm()。

(繼承來源 UIElementAutomationPeer)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
PeerFromProvider(IRawElementProviderSimple)

會得到 AutomationPeer 指定的 IRawElementProviderSimple 代理。

(繼承來源 AutomationPeer)
ProviderFromPeer(AutomationPeer)

得到 , IRawElementProviderSimple 當指定 AutomationPeer。

(繼承來源 AutomationPeer)
RaiseAsyncContentLoadedEvent(AsyncContentLoadedEventArgs)

被召喚AutomationPeer來提升事件。AsyncContentLoadedEvent

(繼承來源 AutomationPeer)
RaiseAutomationEvent(AutomationEvents)

引發自動化事件。

(繼承來源 AutomationPeer)
RaiseNotificationEvent(AutomationNotificationKind, AutomationNotificationProcessing, String, String)

ToggleButton 類型暴露於使用者介面自動化。

(繼承來源 AutomationPeer)
RaisePropertyChangedEvent(AutomationProperty, Object, Object)

會提出事件通知自動化客戶端物業價值變更。

(繼承來源 AutomationPeer)
ResetChildrenCache()

同步重設子元素樹,呼叫 GetChildrenCore()。

(繼承來源 AutomationPeer)
SetFocus()

將鍵盤焦點設定在與此自動化對等節點相關聯的元素上。

(繼承來源 AutomationPeer)
SetFocusCore()

將鍵盤輸入焦點設定在 UIElement 與此 UIElementAutomationPeer相關聯的 。 此方法稱為 SetFocus()。

(繼承來源 UIElementAutomationPeer)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)
VerifyAccess()

強制呼叫執行緒能存取此 DispatcherObject。

(繼承來源 DispatcherObject)

明確介面實作

名稱 Description
IToggleProvider.Toggle()

此類型或成員支援 Windows Presentation Foundation(WPF)基礎架構,並非直接從您的程式碼中使用。

IToggleProvider.ToggleState

此類型或成員支援 Windows Presentation Foundation(WPF)基礎架構,並非直接從您的程式碼中使用。

適用於

另請參閱