Document Library for WinForms | ComponentOne
C1.Win.C1Document.4.8 Assembly / C1.Win.C1Document Namespace / Unit Structure / Convert Method / Convert(Double,UnitTypeEnum,Double) Method
The value to convert in from units.
The source unit of measurement.
The target dpi.

In This Topic
    Convert(Double,UnitTypeEnum,Double) Method
    In This Topic
    Converts a value from one unit of measurement to pixel.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Convert( _
       ByVal value As Double, _
       ByVal from As UnitTypeEnum, _
       ByVal toDpi As Double _
    ) As Double
    public static double Convert( 
       double value,
       UnitTypeEnum from,
       double toDpi
    )

    Parameters

    value
    The value to convert in from units.
    from
    The source unit of measurement.
    toDpi
    The target dpi.

    Return Value

    valueThe converted to pixels with specified dpi.
    See Also