IUITechnologyManager.GetFocusedElement(IntPtr) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回当前具有焦点的元素的 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
参数
返回
具有焦点的元素; 如果没有元素具有焦点,则为 null。
- 属性