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

    Parameters

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