共用方式為


IUITechnologyManager.GetElementFromPoint 方法

這個應用程式開發介面支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。

擷取位於指定螢幕座標上的項目。

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

語法

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

參數

  • pointX
    類型:Int32

    螢幕位置的 X 座標。

  • pointY
    類型:Int32

    螢幕位置的 Y 座標。

傳回值

類型:Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
提供之位置上的項目。

.NET Framework 安全性

請參閱

參考

IUITechnologyManager 介面

Microsoft.VisualStudio.TestTools.UITest.Extension 命名空間

IUITechnologyElement