Parameters
- unit
- The unit to convert to.
Exception | Description |
---|---|
EPLAN.Harness.API.Exceptions.WrongUnitException | Thrown when the unit is not valid for this property. |
TransformProperty<LengthProperty> position = new TransformProperty<LengthProperty>( new LengthProperty(20, Unit.Millimeter), new LengthProperty(-20.5, Unit.Millimeter), new LengthProperty(0.07, Unit.Millimeter) ); position.Convert(Unit.Meter);