Class
ActionPoint

Represents a point on the designer surface.

Definition

Namespace:ArtOfTest.Common.Design

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/1.0.0")]
[TypeConverter(typeof(ActionPointConverter))]
public class ActionPoint : IExtensibleDataObject, INotifyPropertyChanged

Inheritance: objectActionPoint

Implements: IExtensibleDataObjectINotifyPropertyChanged

Constructors

ActionPoint()

Create a new action point

Declaration

cs-api-definition
public ActionPoint()

ActionPoint(Point)

Create a new ActionPoint (Default TopLeftCorner/Pixels)

Declaration

cs-api-definition
public ActionPoint(Point point)

Parameters

point

Point

The point.

ActionPoint(int, int, OffsetReference, ActionPointUnitType)

Create a new action point.

Declaration

cs-api-definition
public ActionPoint(int x, int y, OffsetReference offsetReference, ActionPointUnitType clickUnitType)

Parameters

x

int

The x coordinate

y

int

The y coordinate

offsetReference

OffsetReference

The offset reference.

clickUnitType

ActionPointUnitType

The unit click type.

Fields

Empty

An empty action point.

Declaration

cs-api-definition
public static readonly ActionPoint Empty

Field Value

ActionPoint

Properties

ClickUnitType

The click unit type.

Declaration

cs-api-definition
[DataMember(Name = "ClickUnitType")]
public ActionPointUnitType ClickUnitType { get; set; }

Property Value

ActionPointUnitType

ExtensionData

Infrastructure for forward-compatibility

Declaration

cs-api-definition
[Browsable(false)]
public ExtensionDataObject ExtensionData { get; set; }

Property Value

ExtensionDataObject

Implements IExtensibleDataObject.ExtensionData

FriendlyName

Declaration

cs-api-definition
[Browsable(false)]
public string FriendlyName { get; }

Property Value

string

OffsetReference

Gets or sets the offset refernce of the xy coordinates.

Declaration

cs-api-definition
[DataMember(Name = "OffSetReference")]
public OffsetReference OffsetReference { get; set; }

Property Value

OffsetReference

Target

The target xy as a Point.

Declaration

cs-api-definition
[Browsable(false)]
public Point Target { get; set; }

Property Value

Point

X

The x coordinate of the point.

Declaration

cs-api-definition
[DataMember(Name = "X")]
public int X { get; set; }

Property Value

int

Y

The y coordinate of the point.

Declaration

cs-api-definition
[DataMember(Name = "Y")]
public int Y { get; set; }

Property Value

int

Methods

Diff(ActionPoint, ActionPoint)

Given two different action points, returns the difference in distance as a point

Declaration

cs-api-definition
public static ActionPoint Diff(ActionPoint source, ActionPoint destination)

Parameters

source

ActionPoint

The source point.

destination

ActionPoint

The destination point.

Returns

ActionPoint

The new point difference

OnPropertyChanged(string)

Declaration

cs-api-definition
protected void OnPropertyChanged(string propName)

Parameters

propName

string

Events

PropertyChanged

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged