IUITechnologyManager.GetFocusedElement(IntPtr) 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.
Returns the windows pointer for the element that currently has the focus.
public:
Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ GetFocusedElement(IntPtr handle);
[System.Runtime.InteropServices.DispId(11)]
public Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement GetFocusedElement (IntPtr handle);
[<System.Runtime.InteropServices.DispId(11)>]
abstract member GetFocusedElement : nativeint -> Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
Public Function GetFocusedElement (handle As IntPtr) As IUITechnologyElement
Parameters
Returns
The element that has the focus, or null if no element has the focus.
- Attributes