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

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

    Parameters

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

    Return Value

    See Also