FlexReport for WinForms | ComponentOne
C1.Win.C1Document.4.5.2 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.

In This Topic
    Convert(Double,UnitTypeEnum,UnitTypeEnum) Method
    In This Topic
    Converts a value from one unit of measurement to another.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Convert( _
       ByVal value As Double, _
       ByVal from As UnitTypeEnum, _
       ByVal to As UnitTypeEnum _
    ) As Double
    public static double Convert( 
       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