Class LocationProperty
Class for defining a test object's location property.
Implements
Inherited Members
Namespace: HP.LFT.SDK
Assembly: HP.LFT.SDK.dll
Syntax
public class LocationProperty : ICloneable
Constructors
LocationProperty()
Initializes a new instance of the LocationProperty class.
Declaration
public LocationProperty()
LocationProperty(Point)
Initializes a new instance of the LocationProperty class with specified x- and y- coordinates.
Declaration
public LocationProperty(Point loc)
Parameters
| Type | Name | Description |
|---|---|---|
| Point | loc | The x and y values (in pixels) used to initialize the location. |
Properties
X
The x-coordinate (in pixels) of the test object location.
Declaration
public int? X { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Y
The y-coordinate (in pixels) of the test object location.
Declaration
public int? Y { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Methods
Clone()
Implements a deep clone of the LocationProperty.
Declaration
public object Clone()
Returns
| Type | Description |
|---|---|
| object |
GetProperties()
The inner (X and Y) properties of this property.
Declaration
public IDictionary<string, object> GetProperties()
Returns
| Type | Description |
|---|---|
| IDictionary<string, object> |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |
Overrides
Operators
implicit operator LocationProperty(Point)
Implicit cast of a Point to a LocationProperty. This is the same as calling new LocationProperty(Point).
Declaration
public static implicit operator LocationProperty(Point loc)
Parameters
| Type | Name | Description |
|---|---|---|
| Point | loc | The Point instance to be cast to the LocationProperty. |
Returns
| Type | Description |
|---|---|
| LocationProperty |