Harness proD API Help
EPLAN.Harness.API.ApiProperties Namespace / CurrencyProperty Class
Members Example
In This Topic
    CurrencyProperty Class
    In This Topic
    Property which stores a currency value with a unit.
    Object Model
    CurrencyProperty ClassPropertyValue Class
    Inheritance Hierarchy

    System.Object
       EPLAN.Harness.API.ApiProperties.Property
          EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
             EPLAN.Harness.API.ApiProperties.CurrencyProperty

    Syntax
    Remarks

    Represents a property with a currency value.

    Example
    The following example shows how to use the class CurrencyProperty.
    CurrencyProperty currency = new CurrencyProperty(16, Unit.Euro);
    Console.WriteLine(currency);
    
    currency = "58 $";
    Console.WriteLine(currency);
    
    currency = "1200 CZK";
    Console.WriteLine(currency);
    Console.WriteLine($"Value: {(double)currency.Value}, Unit: {currency.Unit}");
    
    // Results:
    // 16 €
    // 58 $
    // 1200 CZK
    // Value: 1200, Unit: CzechCrown
    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Properties
     NameDescription
    Public Property Specifies whether the property is interval. (Inherited from EPLAN.Harness.API.ApiProperties.Property)
    Public Property Unit of the value of this property. (Inherited from EPLAN.Harness.API.ApiProperties.Property)
    Public Property Gets the value of this property. (Inherited from EPLAN.Harness.API.ApiProperties.Property)
    Top
    Public Methods
     NameDescription
    Public MethodOverridden.  Convert a property to the specified unit.  
    Public MethodIs this unit class property equal to the following object? (Inherited from EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty)
    Public MethodServes as the default hash function. (Inherited from EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty)
    Public MethodOverloaded. Returns a string that represents the current object. (Inherited from EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty)
    Top
    Public Operators
    Sums two properties.
    Implicit conversion from System.String to CurrencyProperty.
    Subtracts two properties.
    Top
    See Also