System.Object
EPLAN.Harness.API.ApiProperties.Property
EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
EPLAN.Harness.API.ApiProperties.CurrencyProperty
System.Object
EPLAN.Harness.API.ApiProperties.Property
EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
EPLAN.Harness.API.ApiProperties.CurrencyProperty
public class CurrencyProperty : EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
Represents a property with a currency value.
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
Name | Description | |
---|---|---|
CurrencyProperty Constructor | Overloaded. |
Name | Description | |
---|---|---|
IsInterval | Specifies whether the property is interval. (Inherited from EPLAN.Harness.API.ApiProperties.Property) | |
Unit | Unit of the value of this property. (Inherited from EPLAN.Harness.API.ApiProperties.Property) | |
Value | Gets the value of this property. (Inherited from EPLAN.Harness.API.ApiProperties.Property) |
Name | Description | |
---|---|---|
Convert | Overridden. Convert a property to the specified unit. | |
Equals | Is this unit class property equal to the following object? (Inherited from EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty) | |
GetHashCode | Serves as the default hash function. (Inherited from EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty) | |
ToString | Overloaded. Returns a string that represents the current object. (Inherited from EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty) |
Addition | Sums two properties. |
Implicit Type Conversion | Implicit conversion from System.String to CurrencyProperty. |
Subtraction | Subtracts two properties. |