Class LocationProperty
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
locPointThe 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
GetProperties()
The inner (X and Y) properties of this property.
public IDictionary<string, object> GetProperties()
Returns
ToString()
public override string ToString()
Returns
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
locPointThe Point instance to be cast to the LocationProperty.