
System.Object
EPLAN.Harness.API.ApiProperties.Property
EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
EPLAN.Harness.API.ApiProperties.PowerProperty
public class PowerProperty : EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
Represents a property with a power value.
Class provides a method to convert values between units.
PowerProperty power = new PowerProperty(2400, Unit.Kilowatt); Console.WriteLine(power); power.Convert(Unit.Gigawatt); Console.WriteLine(power.ToString()); power = "5W"; Console.WriteLine(power); Console.WriteLine($"Value: {(double)power.Value}, Unit: {power.Unit}"); // Results: // 2400 kW // 0,002 GW // 5 W // Value: 5, Unit: Watt
Name | Description | |
---|---|---|
![]() | PowerProperty 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 PowerProperty. |
![]() | Subtracts two properties. |