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

In This Topic
    ToRU(RectangleD,UnitTypeEnum,Single,Single) 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.
    Syntax
    'Declaration
     
    Public Overloads Function ToRU( _
       ByVal value As RectangleD, _
       ByVal srcType As UnitTypeEnum, _
       ByVal srcDpiX As Single, _
       ByVal srcDpiY As Single _
    ) As RectangleD
    public RectangleD ToRU( 
       RectangleD value,
       UnitTypeEnum srcType,
       float srcDpiX,
       float srcDpiY
    )

    Parameters

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

    Return Value

    See Also