語言

AutomationElement.FocusedElement 屬性

定義

取得 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

屬性值

重點介面元素。

備註

如果你的客戶端應用程式可能會在自己的使用者介面中尋找元素,你必須在獨立的執行緒中呼叫所有 使用者介面自動化。

適用於

另請參閱