
System.Object
EPLAN.Harness.API.ApiProperties.Property
EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
EPLAN.Harness.API.ApiProperties.ResistanceProperty
public class ResistanceProperty : EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
Represents a property with a resistance value.
Class provides a method to convert values between units.
ResistanceProperty resistance = new ResistanceProperty(1500, Unit.KiloOhm); Console.WriteLine(resistance); resistance.Convert(Unit.GigaOhm); Console.WriteLine(resistance.ToString()); resistance = "220 Ohm"; Console.WriteLine(resistance); Console.WriteLine($"Value: {(double)resistance.Value}, Unit: {resistance.Unit}"); // Results: // 1500 kOhm // 0,0015 GOhm // 220 Ohm // Value: 220, Unit: Ohm
Name | Description | |
---|---|---|
![]() | ResistanceProperty 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 ResistanceProperty. |
![]() | Subtracts two properties. |