Parameters
- unit
- The unit to convert to.
Exception | Description |
---|---|
EPLAN.Harness.API.Exceptions.WrongUnitException | Thrown when the unit is not valid for this property. |
LengthProperty lengthProperty = "5 m"; lengthProperty.Convert(Unit.Millimeter); Console.WriteLine(lengthProperty.ToString()); // Result: "5000 mm"