PrintDocument for WinForms | ComponentOne
C1.PrintDocument.6 Assembly / C1.C1Preview Namespace / Unit Structure / ConvertUnit Method / ConvertUnit(UnitTypeEnum) Method
The target UnitTypeEnum.

In This Topic
    ConvertUnit(UnitTypeEnum) Method
    In This Topic
    Attempts to convert the current unit value to other unit of measurement.

    Only absolute units can be converted. This method throws an exception if the conversion cannot be performed.

    Syntax
    'Declaration
     
    Public Overloads Function ConvertUnit( _
       ByVal destUnitType As UnitTypeEnum _
    ) As Double
    public double ConvertUnit( 
       UnitTypeEnum destUnitType
    )

    Parameters

    destUnitType
    The target UnitTypeEnum.

    Return Value

    The value in destUnitType units.
    See Also