Click or drag to resize

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
)

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: IObjectTreeNode
The onscreen object to which the specified pixel belongs.
Exceptions
ExceptionCondition
InvocationExceptionWill be thrown if invocation fails.
WebExceptionWill be thrown if there are network problems.
See Also