Share via


IUITechnologyManager.GetFocusedElement(IntPtr) Method

Definition

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

handle
IntPtr

nativeint

The IntPtr for the window that has the focus.

Returns

The element that has the focus, or null if no element has the focus.

Attributes

Applies to