PrintDocument for WinForms | ComponentOne
C1.PrintDocument.6 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / ToRU Method / ToRU(Double,UnitTypeEnum) Method
The source value to convert.
The unit of measurement used to express the source value. If equal to UnitTypeEnum.Pixel, the current document's C1PrintDocument.CreationDpi is used as the source resolution (DPI).

In This Topic
    ToRU(Double,UnitTypeEnum) Method
    In This Topic
    Converts a double value expressed in specified UnitTypeEnum units to a double value expressed in the current document's C1PrintDocument.ResolvedUnit units, using C1PrintDocument.CreationDpi as the source resolution if srcType is UnitTypeEnum.Pixel.
    Syntax
    'Declaration
     
    Public Overloads Function ToRU( _
       ByVal value As Double, _
       ByVal srcType As UnitTypeEnum _
    ) As Double
    public double ToRU( 
       double value,
       UnitTypeEnum srcType
    )

    Parameters

    value
    The source value to convert.
    srcType
    The unit of measurement used to express the source value. If equal to UnitTypeEnum.Pixel, the current document's C1PrintDocument.CreationDpi is used as the source resolution (DPI).

    Return Value

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