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

    Parameters

    value
    Text form of energy to store in the property.

    Return Value

    New EnergyProperty created from the given System.String value.
    Example
    The following example shows how to convert a string to the EnergyProperty.
    EnergyProperty energyProperty1 = "42 J";
    EnergyProperty energyProperty2 = "42J";
    EnergyProperty energyProperty3 = "42";
    // Unit of energyProperty3 depends on Harness proD settings!
    See Also