Click or drag to resize

UnitHelperConvertUnit Method

imbVeles Framework: imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Converts a value from one drawing unit to another.

Namespace:  netDxf.Units
Assembly:  netDXF.Standard (in netDXF.Standard.dll) Version: 2.1.1
Syntax
C#
public static double ConvertUnit(
	double value,
	DrawingUnits from,
	DrawingUnits to
)
Request Example View Source

Parameters

value
Type: SystemDouble
Number to convert.
from
Type: netDxf.UnitsDrawingUnits
Original drawing units.
to
Type: netDxf.UnitsDrawingUnits
Destination drawing units.

Return Value

Type: Double
The converted value to the new drawing units.
See Also