
System.Object
EPLAN.Harness.API.ApiProperties.Property
EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
EPLAN.Harness.API.ApiProperties.AreaProperty
public class AreaProperty : EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
Represents a property with an area value.
Class provides a method to convert values between units.
AreaProperty area = new AreaProperty(100, Unit.SquareMeter); Console.WriteLine(area); area.Convert(Unit.SquareFoot); Console.WriteLine(area.ToString()); area = "23 mm2"; Console.WriteLine(area); Console.WriteLine($"Value: {(double)area.Value}, Unit: {area.Unit}"); area.Convert(Unit.Awg); Console.WriteLine(area); // Results: // 100 m2 // 1076,39 ft2 // 23 mm2 // Value: 23, Unit: SquareMillimeter // 3-4 AWG
Name | Description | |
---|---|---|
![]() | AreaProperty 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 | Overridden. Convert a property to the specified unit. |
![]() | 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. Overridden. Returns a string that represents the current object. |
![]() | Sums two properties. |
![]() | Implicit conversion from System.String to AreaProperty. |
![]() | Subtracts two properties. |