Class Location
Provides a location (relative to an object in the application) for operations that support it. For example, the Click method uses the Location structure to determine where inside this object to perform the click.
public class Location
- Inheritance
-
Location
- Inherited Members
Constructors
Location(Position, Point?)
Initializes a new Location instance the using the specified object position and offset points.
public Location(Position anchor, Point? offset = null)
Parameters
anchorPositionThe object position from which the offset is taken. Possible values: Position.
offsetPoint?The x- and y- offset (in pixels) from the anchor position. If null, the point is (0,0).
Properties
Anchor
The object position from which the offset is taken. Possible values: Position.
public Position Anchor { get; set; }
Property Value
Offset
The x- and y- offset (in pixels) from the anchor position. Default value = 0,0.
public Point Offset { get; set; }