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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。