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

    Parameters

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