共用方式為


UITechnologyManagerProxy.GetElementFromPoint 方法

取得位於指定螢幕座標。

命名空間:  Microsoft.VisualStudio.TestTools.UITesting
組件:  Microsoft.VisualStudio.TestTools.UITesting (在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)

語法

'宣告
Public Overrides Function GetElementFromPoint ( _
    pointX As Integer, _
    pointY As Integer _
) As IUITechnologyElement
public override IUITechnologyElement GetElementFromPoint(
    int pointX,
    int pointY
)
public:
virtual IUITechnologyElement^ GetElementFromPoint(
    int pointX, 
    int pointY
) override
abstract GetElementFromPoint : 
        pointX:int * 
        pointY:int -> IUITechnologyElement 
override GetElementFromPoint : 
        pointX:int * 
        pointY:int -> IUITechnologyElement 
public override function GetElementFromPoint(
    pointX : int, 
    pointY : int
) : IUITechnologyElement

參數

傳回值

型別:Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
在指定螢幕座標的 IUITechnologyElement。

實作

IUITechnologyManager.GetElementFromPoint(Int32, Int32)

.NET Framework 安全性

請參閱

參考

UITechnologyManagerProxy 類別

Microsoft.VisualStudio.TestTools.UITesting 命名空間