ClassActionPoint
Represents a point on the designer surface.
Definition
Namespace:ArtOfTest.Common.Design
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/1.0.0")]
[TypeConverter(typeof(ActionPointConverter))]
public class ActionPoint : IExtensibleDataObject, INotifyPropertyChanged
Inheritance: objectActionPoint
Implements:
Constructors
ActionPoint(Point)
Create a new ActionPoint (Default TopLeftCorner/Pixels)
ActionPoint(int, int, OffsetReference, ActionPointUnitType)
Create a new action point.
Declaration
public ActionPoint(int x, int y, OffsetReference offsetReference, ActionPointUnitType clickUnitType)
Parameters
x
The x coordinate
y
The y coordinate
offsetReference
The offset reference.
clickUnitType
The unit click type.
Fields
Empty
An empty action point.
Properties
ClickUnitType
The click unit type.
Declaration
[DataMember(Name = "ClickUnitType")]
public ActionPointUnitType ClickUnitType { get; set; }
Property Value
ExtensionData
Infrastructure for forward-compatibility
Declaration
[Browsable(false)]
public ExtensionDataObject ExtensionData { get; set; }
Property Value
Implements
FriendlyName
Declaration
[Browsable(false)]
public string FriendlyName { get; }
Property Value
OffsetReference
Gets or sets the offset refernce of the xy coordinates.
Declaration
[DataMember(Name = "OffSetReference")]
public OffsetReference OffsetReference { get; set; }
Property Value
Target
The target xy as a Point.
Declaration
[Browsable(false)]
public Point Target { get; set; }
Property Value
X
The x coordinate of the point.
Declaration
[DataMember(Name = "X")]
public int X { get; set; }
Property Value
Methods
Diff(ActionPoint, ActionPoint)
Given two different action points, returns the difference in distance as a point
Declaration
public static ActionPoint Diff(ActionPoint source, ActionPoint destination)
Parameters
source
The source point.
destination
The destination point.
Returns
The new point difference
OnPropertyChanged(string)
Declaration
protected void OnPropertyChanged(string propName)
Parameters
propName
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements