Harness proD API Help
EPLAN.Harness.API.ApiProperties Namespace / LengthDensityProperty Class
Members Example
In This Topic
    LengthDensityProperty Class
    In This Topic
    Property which stores a length density value with a unit.
    Object Model
    LengthDensityProperty ClassPropertyValue Class
    Inheritance Hierarchy

    System.Object
       EPLAN.Harness.API.ApiProperties.Property
          EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
             EPLAN.Harness.API.ApiProperties.LengthDensityProperty

    Syntax
    Remarks

    Represents a property with a length density value.

    Class provides a method to convert values between units.

    Example
    The following example shows how to use the class LengthDensityProperty.
    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
    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Properties
     NameDescription
    Public Property Specifies whether the property is interval. (Inherited from EPLAN.Harness.API.ApiProperties.Property)
    Public Property Unit of the value of this property. (Inherited from EPLAN.Harness.API.ApiProperties.Property)
    Public Property Gets the value of this property. (Inherited from EPLAN.Harness.API.ApiProperties.Property)
    Top
    Public Methods
     NameDescription
    Public Method Convert a property to the specified unit. (Inherited from EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty)
    Public MethodIs this unit class property equal to the following object? (Inherited from EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty)
    Public MethodServes as the default hash function. (Inherited from EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty)
    Public MethodOverloaded. Returns a string that represents the current object. (Inherited from EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty)
    Top
    Public Operators
    Sums two properties.
    Implicit conversion from System.String to LengthDensityProperty.
    Subtracts two properties.
    Top
    See Also