AutomationElement.FocusedElement 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得 AutomationElement 目前有焦點的。
public:
static property System::Windows::Automation::AutomationElement ^ FocusedElement { System::Windows::Automation::AutomationElement ^ get(); };
public static System.Windows.Automation.AutomationElement FocusedElement { get; }
static member FocusedElement : System.Windows.Automation.AutomationElement
Public Shared ReadOnly Property FocusedElement As AutomationElement
屬性值
重點介面元素。
備註
如果你的客戶端應用程式可能會在自己的使用者介面中尋找元素,你必須在獨立的執行緒中呼叫所有 使用者介面自動化。