Table of Contents

Class LocationProperty

Namespace
HP.LFT.SDK
Assembly
HP.LFT.SDK.dll

Class for defining a test object's location property.

public class LocationProperty : ICloneable
Inheritance
LocationProperty
Implements
Inherited Members

Constructors

LocationProperty()

Initializes a new instance of the LocationProperty class.

public LocationProperty()

LocationProperty(Point)

Initializes a new instance of the LocationProperty class with specified x- and y- coordinates.

public LocationProperty(Point loc)

Parameters

loc Point

The x and y values (in pixels) used to initialize the location.

Properties

X

The x-coordinate (in pixels) of the test object location.

public int? X { get; set; }

Property Value

int?

Y

The y-coordinate (in pixels) of the test object location.

public int? Y { get; set; }

Property Value

int?

Methods

Clone()

Implements a deep clone of the LocationProperty.

public object Clone()

Returns

object

GetProperties()

The inner (X and Y) properties of this property.

public IDictionary<string, object> GetProperties()

Returns

IDictionary<string, object>

ToString()

public override string ToString()

Returns

string

Operators

implicit operator LocationProperty(Point)

Implicit cast of a Point to a LocationProperty. This is the same as calling new LocationProperty(Point).

public static implicit operator LocationProperty(Point loc)

Parameters

loc Point

The Point instance to be cast to the LocationProperty.

Returns

LocationProperty