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.
Inherited Members
Namespace: HP.LFT.SDK
Assembly: HP.LFT.SDK.dll
Syntax
public class Location
Constructors
Location(Position, Point?)
Initializes a new Location instance the using the specified object position and offset points.
Declaration
public Location(Position anchor, Point? offset = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Position | anchor | The object position from which the offset is taken. Possible values: Position. |
| Point? | offset | 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.
Declaration
public Position Anchor { get; set; }
Property Value
| Type | Description |
|---|---|
| Position |
Offset
The x- and y- offset (in pixels) from the anchor position. Default value = 0,0.
Declaration
public Point Offset { get; set; }
Property Value
| Type | Description |
|---|---|
| Point |