Harness proD API Help
EPLAN.Harness.API.ApiProperties Namespace / QuantityProperty Class / QuantityProperty Constructor / QuantityProperty Constructor(Double,Unit)
The value of quantity.
The unit of quantity value.
Example
In This Topic
    QuantityProperty Constructor(Double,Unit)
    In This Topic
    Creates a new instance of the QuantityProperty with the specified value and unit.
    Syntax
    public QuantityProperty( 
       double value,
       Unit unit
    )

    Parameters

    value
    The value of quantity.
    unit
    The unit of quantity value.
    Exceptions
    ExceptionDescription
    Thrown when the unit is not valid for this property.
    Example
    The following example shows how to create a new QuantityProperty.
    QuantityProperty quantityProperty = new QuantityProperty(42.0, Unit.X);
    See Also