Click or drag to resize
Ranorex

LocationGetLocationForRect Method

Gets the coordinates of a given Location corresponding to the specified rectangle.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public Point GetLocationForRect(
	Rectangle rect
)

Parameters

rect
Type: System.DrawingRectangle
The rectangle.

Return Value

Type: Point
The coordinates resulting from the location and the specified rectangle.
Exceptions
ExceptionCondition
NotSupportedExceptionIf the location is image based.
See Also