PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.8 Assembly / C1.Win.C1Preview Namespace / C1PreviewPane Class / DocumentToClient Method / DocumentToClient(Int32,PointF,Point) Method
0-based page index of the document point.
Point on page pageIdx.
OUT: Preview pane client point.

In This Topic
    DocumentToClient(Int32,PointF,Point) Method
    In This Topic
    Converts a PointF in document coordinates to the current C1PreviewPane's client coordinates.
    Syntax
    'Declaration
     
    Public Overloads Function DocumentToClient( _
       ByVal pageIdx As Integer, _
       ByVal ptPage As PointF, _
       ByRef pt As Point _
    ) As Boolean
    public bool DocumentToClient( 
       int pageIdx,
       PointF ptPage,
       out Point pt
    )

    Parameters

    pageIdx
    0-based page index of the document point.
    ptPage
    Point on page pageIdx.
    pt
    OUT: Preview pane client point.

    Return Value

    True if the client point belongs to a document page, false otherwise.
    See Also