UITechnologyManager.GetElementFromPoint 方法

定义

重载

GetElementFromPoint(Int32, Int32)

检索位于给定屏幕坐标位置的元素。

GetElementFromPoint(Int32, Int32, AutomationElement)

GetElementFromPoint(Int32, Int32)

检索位于给定屏幕坐标位置的元素。

public:
 abstract Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ GetElementFromPoint(int pointX, int pointY);
public abstract Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement GetElementFromPoint (int pointX, int pointY);
abstract member GetElementFromPoint : int * int -> Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
Public MustOverride Function GetElementFromPoint (pointX As Integer, pointY As Integer) As IUITechnologyElement

参数

pointX
Int32

屏幕位置的 x 坐标。

pointY
Int32

屏幕位置的 y 坐标。

返回

IUITechnologyElement

提供的位置处的元素。

实现

适用于

GetElementFromPoint(Int32, Int32, AutomationElement)

public:
 virtual Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ GetElementFromPoint(int pointX, int pointY, System::Windows::Automation::AutomationElement ^ ceilingElement);
public virtual Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement GetElementFromPoint (int pointX, int pointY, System.Windows.Automation.AutomationElement ceilingElement);
abstract member GetElementFromPoint : int * int * System.Windows.Automation.AutomationElement -> Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
override this.GetElementFromPoint : int * int * System.Windows.Automation.AutomationElement -> Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
Public Overridable Function GetElementFromPoint (pointX As Integer, pointY As Integer, ceilingElement As AutomationElement) As IUITechnologyElement

参数

pointX
Int32
pointY
Int32
ceilingElement
AutomationElement

返回

IUITechnologyElement

适用于