Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UITechnologyManagerProxy::GetFocusedElement Method (IntPtr)

 

Gets the focused element that is the element that will receive keyboard events at this instance.

Namespace:   Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

public:
virtual IUITechnologyElement^ GetFocusedElement(
	IntPtr handle
) override

Parameters

handle
Type: System::IntPtr

The handle of the window which has the focus.

Return Value

Type: Microsoft.VisualStudio.TestTools.UITest.Extension::IUITechnologyElement^

The element that has the focus or null if there is no element that has focus.

Return to top
Show: