PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.8 Assembly / C1.Win.C1Preview Namespace / C1PreviewPane Class / DocumentToClient Method / DocumentToClient(Int32,RectangleF) Method
0-based page index.
Rectangle on page pageIdx.

In This Topic
    DocumentToClient(Int32,RectangleF) Method
    In This Topic
    Converts a RectangleF in document coordinates to the current C1PreviewPane's client coordinates.
    Syntax
    'Declaration
     
    Public Overloads Function DocumentToClient( _
       ByVal pageIdx As Integer, _
       ByVal rPage As RectangleF _
    ) As Rectangle
    public Rectangle DocumentToClient( 
       int pageIdx,
       RectangleF rPage
    )

    Parameters

    pageIdx
    0-based page index.
    rPage
    Rectangle on page pageIdx.

    Return Value

    Rectangle converted to preview pane client coordinates.
    See Also