Harness proD API Help
EPLAN.Harness.API.ApiProperties Namespace / Transform2DProperty<T> Class / Convert Method
The unit to convert to.
Example
In This Topic
    Convert Method (Transform2DProperty<T>)
    In This Topic
    Convert properties for all axes to the desired unit.
    Syntax
    public void Convert( 
       Unit unit
    )

    Parameters

    unit
    The unit to convert to.
    Exceptions
    ExceptionDescription
    Thrown when the unit is not valid for this property.
    Example
    The following example shows how to convert a TransformProperty{T} to the desired unit.
    Transform2DProperty<LengthProperty> position = new Transform2DProperty<LengthProperty>(
    	new LengthProperty(20, Unit.Millimeter),
    	new LengthProperty(-20.5, Unit.Millimeter)
    );
    
    position.Convert(Unit.Meter);
    See Also