Partager via


UITechnologyManagerProxy.GetElementFromPoint Method

Gets the element at the given screen coordinates.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
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

Parameters

  • pointX
    Type: Int32

    The x-coordinate of the screen location.

  • pointY
    Type: Int32

    The y-coordinate of the screen location.

Return Value

Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
The IUITechnologyElement at the screen coordinates specified.

Implements

IUITechnologyManager.GetElementFromPoint(Int32, Int32)

.NET Framework Security

See Also

Reference

UITechnologyManagerProxy Class

Microsoft.VisualStudio.TestTools.UITesting Namespace