IUITechnologyManager.GetFocusedElement(IntPtr) 方法

定义

返回当前具有焦点的元素的 windows 指针。

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

参数

handle
IntPtr

nativeint

IntPtr具有焦点的窗口的。

返回

IUITechnologyElement

具有焦点的元素; 如果没有元素具有焦点,则为 null。

属性

适用于