AutomationElement 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表 使用者介面自動化 樹中的 使用者介面自動化 元素,並包含 使用者介面自動化 客戶端應用程式所使用的識別碼值。
public ref class AutomationElement sealed
public sealed class AutomationElement
type AutomationElement = class
Public NotInheritable Class AutomationElement
- 繼承
-
AutomationElement
備註
AutomationElement 對應於使用者介面(UI)的一部分,無論底層實作為何(例如 Windows Presentation Foundation(WPF)或 Win32)。
欄位
屬性
| 名稱 | Description |
|---|---|
| Cached |
取得此 AutomationElement 物件快取的 使用者介面自動化 屬性值。 |
| CachedChildren |
取得此 AutomationElement的快取子元素。 |
| CachedParent |
取得這個 AutomationElement快取的父檔。 |
| Current |
取得當前屬性值。AutomationElement |
| FocusedElement |
取得 AutomationElement 目前有焦點的。 |
| RootElement |
取得目前桌面的根權限 AutomationElement 。 |
方法
運算子
| 名稱 | Description |
|---|---|
| Equality(AutomationElement, AutomationElement) |
回傳一個值,表示指定的 AutomationElement 物件是否指向相同的使用者介面(UI)元素。 |
| Inequality(AutomationElement, AutomationElement) |
回傳一個值,指示指定物件是否 AutomationElement 指向不同的使用者介面(UI)元素。 |