Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

d3a0c149 1e71 f019 63bf 82c156d8c774

haplokuon edited this page May 6, 2023 · 1 revision

ConvertUnit Method

netDxf 3.0.0 Library

Converts a value from one drawing unit to another.

Definition

Namespace: netDxf.Units
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public static double ConvertUnit(
	double value,
	DrawingUnits from,
	DrawingUnits to
)

VB

Public Shared Function ConvertUnit ( 
	value As Double,
	from As DrawingUnits,
	to As DrawingUnits
) As Double

C++

public:
static double ConvertUnit(
	double value, 
	DrawingUnits from, 
	DrawingUnits to
)

F#

static member ConvertUnit : 
        value : float * 
        from : DrawingUnits * 
        to : DrawingUnits -> float 

Parameters

  Double
Number to convert.
  DrawingUnits
Original drawing units.
  DrawingUnits
Destination drawing units.

Return Value

Double
The converted value to the new drawing units.

See Also

Reference

UnitHelper Class
netDxf.Units Namespace

Clone this wiki locally