PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.6 Assembly / C1.Win.C1Preview Namespace / C1PreviewPane Class / DocumentToClient Method / DocumentToClient(Int32,RectangleF,Rectangle) Method
0-based page index.
Rectangle on page pageIdx.
OUT: Rectangle converted to preview pane client coordinates.

In This Topic
    DocumentToClient(Int32,RectangleF,Rectangle) 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, _
       ByRef r As Rectangle _
    ) As Boolean
    public bool DocumentToClient( 
       int pageIdx,
       RectangleF rPage,
       out Rectangle r
    )

    Parameters

    pageIdx
    0-based page index.
    rPage
    Rectangle on page pageIdx.
    r
    OUT: Rectangle converted to preview pane client coordinates.

    Return Value

    True if the client rectangle's location belongs to a document page, false otherwise.
    See Also