IDesktopObjectFromPoint Method (Int32, Int32, Boolean) |
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,
bool findtransparent
)
Function ObjectFromPoint (
x As Integer,
y As Integer,
findtransparent As Boolean
) As IObjectTreeNode
Dim instance As IDesktop
Dim x As Integer
Dim y As Integer
Dim findtransparent As Boolean
Dim returnValue As IObjectTreeNode
returnValue = instance.ObjectFromPoint(x,
y, findtransparent)
IObjectTreeNode^ ObjectFromPoint(
int x,
int y,
bool findtransparent
)
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. - findtransparent
- Type: SystemBoolean
Specifies whether to retrieve non-windowed controls.When False, non-windowed controls are not obtained and their parent onscreen object is returned instead.
Return Value
Type:
IObjectTreeNodeThe onscreen object to which the specified pixel belongs.
Exceptions See Also