FlexReport for WPF | ComponentOne
C1.WPF.Document Assembly / C1.WPF.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