PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.8 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / FromRU Method / FromRU(RectangleD,UnitTypeEnum,Single,Single) Method
The value to convert, expressed in C1.C1Preview.C1PrintDocument.ResolvedUnit units.
The destination C1.C1Preview.UnitTypeEnum units to convert to.
The horizontal destination resolution (DPI), required only if destType is C1.C1Preview.UnitTypeEnum.Pixel.
The vertical destination resolution (DPI), required only if destType is C1.C1Preview.UnitTypeEnum.Pixel.

In This Topic
    FromRU(RectangleD,UnitTypeEnum,Single,Single) Method
    In This Topic
    Converts a C1.C1Preview.RectangleD value expressed in the current document's C1.C1Preview.C1PrintDocument.ResolvedUnit units to other C1.C1Preview.UnitTypeEnum units.
    Syntax
    'Declaration
     
    Public Overloads Function FromRU( _
       ByVal value As RectangleD, _
       ByVal destType As UnitTypeEnum, _
       ByVal destDpiX As Single, _
       ByVal destDpiY As Single _
    ) As RectangleD
    public RectangleD FromRU( 
       RectangleD value,
       UnitTypeEnum destType,
       float destDpiX,
       float destDpiY
    )

    Parameters

    value
    The value to convert, expressed in C1.C1Preview.C1PrintDocument.ResolvedUnit units.
    destType
    The destination C1.C1Preview.UnitTypeEnum units to convert to.
    destDpiX
    The horizontal destination resolution (DPI), required only if destType is C1.C1Preview.UnitTypeEnum.Pixel.
    destDpiY
    The vertical destination resolution (DPI), required only if destType is C1.C1Preview.UnitTypeEnum.Pixel.

    Return Value

    A C1.C1Preview.RectangleD structure converted to target units.
    See Also