
System.Object
EPLAN.Harness.API.ApiProperties.Property
EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
EPLAN.Harness.API.ApiProperties.CurrentProperty
public class CurrentProperty : EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
Represents a property with current value.
Class provides a method to convert values between units.
CurrentProperty current = new CurrentProperty(16, Unit.Milliamper); Console.WriteLine(current); current.Convert(Unit.Amper); Console.WriteLine(current.ToString()); current = "2,4 kA"; Console.WriteLine(current); Console.WriteLine($"Value: {(double)current.Value}, Unit: {current.Unit}"); // Results: // 16 mA // 0,016 A // 2,4 kA // Value: 2,4, Unit: Kiloamper
Name | Description | |
---|---|---|
![]() | CurrentProperty 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 | Convert a property to the specified unit. (Inherited from EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty) |
![]() | 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) |
![]() | Sums two properties. |
![]() | Implicit conversion from System.String to CurrentProperty. |
![]() | Subtracts two properties. |