IDesktopObjectFromPoint Method (Int32, Int32) |
Returns the visual object that contains the pixel with the specified coordinates.
Namespace:
SmartBear.TestLeft.TestObjects
Assembly:
SmartBear.TestLeft (in SmartBear.TestLeft.dll) Version: 14.70.237.11 (14.70.237.11)
Syntax IObjectTreeNode ObjectFromPoint(
int x,
int y
)
Function ObjectFromPoint (
x As Integer,
y As Integer
) As IObjectTreeNode
Dim instance As IDesktop
Dim x As Integer
Dim y As Integer
Dim returnValue As IObjectTreeNode
returnValue = instance.ObjectFromPoint(x,
y)
IObjectTreeNode^ ObjectFromPoint(
int x,
int y
)
Parameters
- x
- Type: SystemInt32
The horizontal coordinate (relative to the screen) of the desired pixel. - y
- Type: SystemInt32
The vertical coordinate (relative to the screen) of the desired pixel.
Return Value
Type:
IObjectTreeNodeThe onscreen object to which the specified pixel belongs.
Exceptions See Also