PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.8 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / ToRU Method / ToRU(Double,UnitTypeEnum,Single) Method
The source value to convert.
The unit of measurement used to express the source value.
The source resolution (DPI) (used if srcType is C1.C1Preview.UnitTypeEnum.Pixel).

In This Topic
    ToRU(Double,UnitTypeEnum,Single) Method
    In This Topic
    Converts a double value expressed in specified C1.C1Preview.UnitTypeEnum units to a double value expressed in the current document's C1.C1Preview.C1PrintDocument.ResolvedUnit units.
    Syntax
    'Declaration
     
    Public Overloads Function ToRU( _
       ByVal value As Double, _
       ByVal srcType As UnitTypeEnum, _
       ByVal srcDpi As Single _
    ) As Double
    public double ToRU( 
       double value,
       UnitTypeEnum srcType,
       float srcDpi
    )

    Parameters

    value
    The source value to convert.
    srcType
    The unit of measurement used to express the source value.
    srcDpi
    The source resolution (DPI) (used if srcType is C1.C1Preview.UnitTypeEnum.Pixel).

    Return Value

    The double value expressed in C1.C1Preview.C1PrintDocument.ResolvedUnit units.
    See Also