System.Object
EPLAN.Harness.API.ApiProperties.Property
EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
EPLAN.Harness.API.ApiProperties.LengthDensityProperty
System.Object
EPLAN.Harness.API.ApiProperties.Property
EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
EPLAN.Harness.API.ApiProperties.LengthDensityProperty
public class LengthDensityProperty : EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
Represents a property with a length density value.
Class provides a method to convert values between units.
LengthDensityProperty lengthDensity = new LengthDensityProperty(15, Unit.KilogramPerMeter); Console.WriteLine(lengthDensity); lengthDensity.Convert(Unit.PoundPerFoot); Console.WriteLine(lengthDensity.ToString()); lengthDensity = "712 kg/km"; Console.WriteLine(lengthDensity); Console.WriteLine($"Value: {(double)lengthDensity.Value}, Unit: {lengthDensity.Unit}"); // Results: // 15 kg/m // 10,08 lb/ft // 712 kg/km // Value: 712, Unit: KilogramPerKilometer
Name | Description | |
---|---|---|
LengthDensityProperty 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) |
Addition | Sums two properties. |
Implicit Type Conversion | Implicit conversion from System.String to LengthDensityProperty. |
Subtraction | Subtracts two properties. |