ComponentOne FlexReport for WinForms
Convert(Double,UnitTypeEnum,UnitTypeEnum) Method

C1.Win.C1Document.4 Assembly > C1.Win.C1Document Namespace > Unit Structure > Convert Method : Convert(Double,UnitTypeEnum,UnitTypeEnum) Method
The value to convert.
The source unit of measurement.
The target unit of measurement.
Converts a value from one unit of measurement to another.
Syntax
'Declaration
 
Public Overloads Shared Function Convert( _
   ByVal value As System.Double, _
   ByVal from As UnitTypeEnum, _
   ByVal to As UnitTypeEnum _
) As System.Double
public static System.double Convert( 
   System.double value,
   UnitTypeEnum from,
   UnitTypeEnum to
)

Parameters

value
The value to convert.
from
The source unit of measurement.
to
The target unit of measurement.

Return Value

value converted to to units.
See Also

Reference

Unit Structure
Unit Members
Overload List