UITechnologyManager.GetFocusedElement Method    
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| GetFocusedElement(IntPtr) | Returns the windows pointer for the element that currently has the focus. | 
| GetFocusedElement(AutomationElement) | 
GetFocusedElement(IntPtr)
Returns the windows pointer for the element that currently has the focus.
public:
 abstract Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ GetFocusedElement(IntPtr handle);public abstract Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement GetFocusedElement(IntPtr handle);abstract member GetFocusedElement : nativeint -> Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElementPublic MustOverride Function GetFocusedElement (handle As IntPtr) As IUITechnologyElementParameters
Returns
The element that has the focus, or null if no element has the focus.
Implements
Applies to
GetFocusedElement(AutomationElement)
public:
 virtual Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ GetFocusedElement(System::Windows::Automation::AutomationElement ^ ceilingElement);public virtual Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement GetFocusedElement(System.Windows.Automation.AutomationElement ceilingElement);abstract member GetFocusedElement : System.Windows.Automation.AutomationElement -> Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
override this.GetFocusedElement : System.Windows.Automation.AutomationElement -> Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElementPublic Overridable Function GetFocusedElement (ceilingElement As AutomationElement) As IUITechnologyElementParameters
- ceilingElement
- AutomationElement