FlexReport for UWP | ComponentOne
C1.UWP.Document Assembly / C1.Xaml.Document Namespace / Unit Structure / Convert Method / Convert(Double,UnitTypeEnum,Double) Method
The value to convert in from units.
The source unit of measurement.

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

    Return Value

    value converted to pixels with specified dpi.
    See Also