AutomationElement.FocusedElement 屬性

定義

取得目前具有焦點的 AutomationElement

public:
 static property System::Windows::Automation::AutomationElement ^ FocusedElement { System::Windows::Automation::AutomationElement ^ get(); };
public static System.Windows.Automation.AutomationElement FocusedElement { get; }
member this.FocusedElement : System.Windows.Automation.AutomationElement
Public Shared ReadOnly Property FocusedElement As AutomationElement

屬性值

AutomationElement

焦點 UI 元素。

備註

如果您的用戶端應用程式可能嘗試在自己的使用者介面中尋找元素,您必須在個別執行緒上進行所有消費者介面自動化呼叫。

適用於

另請參閱