Harness proD API Help
EPLAN.Harness.API.ApiProperties Namespace / Transform2DProperty<T> Class / Transform2DProperty<T> Constructor
The property related with the X axis.
The property related with the Y axis.
Example
In This Topic
    Transform2DProperty<T> Constructor
    In This Topic
    Creates a new instance of the Transform2DProperty<T> with the specified properties for X and Y axes.
    Syntax
    public Transform2DProperty<T>( 
       T x,
       T y
    )

    Parameters

    x
    The property related with the X axis.
    y
    The property related with the Y axis.
    Example
    The following example shows how to create a new TransformProperty{T}.
    Transform2DProperty<LengthProperty> translation = new Transform2DProperty<LengthProperty>(
    	new LengthProperty(20, Unit.Millimeter),
    	new LengthProperty(-20.5, Unit.Millimeter)
    );
    
    Transform2DProperty<AngleProperty> rotation = new Transform2DProperty<AngleProperty>(
    	new AngleProperty(20, Unit.Degree),
    	new AngleProperty(0, Unit.Degree)
    );
    See Also