Harness proD API Help
EPLAN.Harness.API.ApiProperties Namespace / DensityProperty Class / Implicit Type Conversion Operator
Text form of density to store in the property.
Example
In This Topic
    Implicit Type Conversion Operator (DensityProperty)
    In This Topic
    Implicit conversion from System.String to DensityProperty.
    Syntax
    public DensityProperty operator implicit( 
       string value
    )

    Parameters

    value
    Text form of density to store in the property.

    Return Value

    New DensityProperty created from the given System.String value.
    Example
    The following example shows how to convert a string to the DensityProperty.
    DensityProperty densityProperty1 = "42 kg/m3";
    DensityProperty densityProperty2 = "42kg/m3";
    DensityProperty densityProperty3 = "42";
    // Unit of densityProperty3 depends on Harness proD settings!
    See Also