FlexReport for WinForms | ComponentOne
C1.Win.Document.6 Assembly / C1.Win.Document Namespace / Unit Structure / Convert Method / Convert(Double,Double,UnitTypeEnum) Method
The value to convert in pixels.
The source dpi.
The target unit of measurement.

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

    Parameters

    value
    The value to convert in pixels.
    fromDpi
    The source dpi.
    to
    The target unit of measurement.

    Return Value

    value converted to to units.
    See Also