Documents for PDF .NET Edition
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Common Namespace / Unit Structure / Convert Method / Convert(Single,UnitTypeEnum,UnitTypeEnum) Method
The value to convert.
The source unit of measurement.
The target unit of measurement.

In This Topic
    Convert(Single,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 System.Single, _
       ByVal from As UnitTypeEnum, _
       ByVal to As UnitTypeEnum _
    ) As System.Single
    public static System.float Convert( 
       System.float 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