Automation 類別

定義

包含使用者介面自動化用戶端應用程式的方法與欄位。

public ref class Automation abstract sealed
public static class Automation
type Automation = class
Public Class Automation
繼承
Automation

欄位

ContentViewCondition

表示消費者介面自動化樹狀結構的預先定義檢視,只包含可包含內容的消費者介面自動化專案。

ControlViewCondition

表示消費者介面自動化樹狀結構的預先定義檢視,只包含控制項消費者介面自動化專案。

RawViewCondition

表示包含所有消費者介面自動化元素之消費者介面自動化樹狀結構的預先定義檢視。

方法

AddAutomationEventHandler(AutomationEvent, AutomationElement, TreeScope, AutomationEventHandler)

註冊處理消費者介面自動化事件的方法。

AddAutomationFocusChangedEventHandler(AutomationFocusChangedEventHandler)

註冊要處理焦點變更事件的方法。

AddAutomationPropertyChangedEventHandler(AutomationElement, TreeScope, AutomationPropertyChangedEventHandler, AutomationProperty[])

註冊要處理屬性變更之事件的方法。

AddStructureChangedEventHandler(AutomationElement, TreeScope, StructureChangedEventHandler)

註冊要處理結構變更之事件的方法。

Compare(AutomationElement, AutomationElement)

比較兩個消費者介面自動化元素,如果兩者都參考相同的 UI 元素,則傳 true 回 。

Compare(Int32[], Int32[])

比較兩個包含執行時間識別碼的整數陣列 (識別碼) ,以判斷其內容是否相同。

PatternName(AutomationPattern)

擷取指定之控制項模式的名稱。

PropertyName(AutomationProperty)

擷取指定之消費者介面自動化屬性的名稱。

RemoveAllEventHandlers()

移除所有已註冊消費者介面自動化事件處理常式。

RemoveAutomationEventHandler(AutomationEvent, AutomationElement, AutomationEventHandler)

移除指定的消費者介面自動化事件處理常式。

RemoveAutomationFocusChangedEventHandler(AutomationFocusChangedEventHandler)

移除指定之焦點變更的事件處理常式。

RemoveAutomationPropertyChangedEventHandler(AutomationElement, AutomationPropertyChangedEventHandler)

移除指定之屬性變更的事件處理常式。

RemoveStructureChangedEventHandler(AutomationElement, StructureChangedEventHandler)

移除指定之結構變更的事件處理常式。

適用於