 | 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
Syntaxpublic Point GetLocationForRect(
Rectangle rect
)
Public Function GetLocationForRect (
rect As Rectangle
) As Point
Parameters
- rect
- Type: System.DrawingRectangle
The rectangle.
Return Value
Type:
PointThe coordinates resulting from the location and the specified rectangle.
Exceptions| Exception | Condition |
|---|
| NotSupportedException | If the location is image based. |
See Also