Click or drag to resize
Ranorex

LocationGetElementLocation Method

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

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public Point GetElementLocation(
	Element element,
	bool relative
)

Parameters

element
Type: Ranorex.CoreElement
The element.
relative
Type: SystemBoolean
A value specifying if the returned coordinates are relative to the element location or absolute (=screen) coordinates.

Return Value

Type: Point
The coordinates resulting from the location and the specified element.
See Also