GenericRootAutomationPeer 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 HwndSource 類型公開至 UI 自動化。
public ref class GenericRootAutomationPeer : System::Windows::Automation::Peers::UIElementAutomationPeer
public class GenericRootAutomationPeer : System.Windows.Automation.Peers.UIElementAutomationPeer
type GenericRootAutomationPeer = class
inherit UIElementAutomationPeer
Public Class GenericRootAutomationPeer
Inherits UIElementAutomationPeer
- 繼承
備註
GenericRootAutomationPeer 當它包含下列樹狀結構時,會當做對等 HwndSource 使用:
因為只有 UIElement 類型具有對等,而且視覺效果不是 UIElement 類型,所以類型的 UI 自動化樹 UIElement 狀結構中不存在通用父代。 使用者介面自動化需要來自應用程式的單一根對等互連;因此,.NET Framework會 GenericRootAutomationPeer 建立 的 HwndSource ,以便做為兩 UIElement 種型別之父對等的單一根對等。
一般而言,根對等是 WindowAutomationPeer 。
建構函式
GenericRootAutomationPeer(UIElement) |
初始化 GenericRootAutomationPeer 類別的新執行個體。 |
屬性
Dispatcher |
取得與這個 Dispatcher 關聯的 DispatcherObject。 (繼承來源 DispatcherObject) |
EventsSource |
取得或設定 AutomationPeer,其報告至自動化用戶端,作為所有來自此 AutomationPeer 的事件來源。 (繼承來源 AutomationPeer) |
IsHwndHost |
取得值,這個值表示是否與 WPF Windows Presentation Foundation (中這個 AutomationPeer 主機 |
Owner |
取得與 UIElementAutomationPeer 相關聯的 UIElement。 (繼承來源 UIElementAutomationPeer) |
方法
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應