AutomationElement.FocusedElement 屬性
定義
取得目前具有焦點的 AutomationElement。Gets the AutomationElement that currently has focus.
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
屬性值
焦點的 UI 元素。The focused UI element.
備註
如果您的用戶端應用程式可能會嘗試在其本身的使用者介面中尋找元素,您必須在個別的執行緒上進行所有的消費者介面自動化呼叫。If your client application might try to find elements in its own user interface, you must make all UI Automation calls on a separate thread.