[]
        
(Showing Draft Content)

C1.Win.C1Preview.C1PreviewPane.DocumentToClient

DocumentToClient Method

DocumentToClient(int, PointF, out Point)

Converts a PointF in document coordinates to the current C1PreviewPane's client coordinates.

Declaration
public bool DocumentToClient(int pageIdx, PointF ptPage, out Point pt)
Public Function DocumentToClient(pageIdx As Integer, ptPage As PointF, ByRef pt As Point) As Boolean
Parameters
Type Name Description
int pageIdx

0-based page index of the document point.

PointF ptPage

Point on page pageIdx.

Point pt

OUT: Preview pane client point.

Returns
Type Description
bool

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

See Also

DocumentToClient(int, RectangleF, out Rectangle)

Converts a RectangleF in document coordinates to the current C1PreviewPane's client coordinates.

Declaration
public bool DocumentToClient(int pageIdx, RectangleF rPage, out Rectangle r)
Public Function DocumentToClient(pageIdx As Integer, rPage As RectangleF, ByRef r As Rectangle) As Boolean
Parameters
Type Name Description
int pageIdx

0-based page index.

RectangleF rPage

Rectangle on page pageIdx.

Rectangle r

OUT: Rectangle converted to preview pane client coordinates.

Returns
Type Description
bool

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

See Also

DocumentToClient(int, RectangleF)

Converts a RectangleF in document coordinates to the current C1PreviewPane's client coordinates.

Declaration
public Rectangle DocumentToClient(int pageIdx, RectangleF rPage)
Public Function DocumentToClient(pageIdx As Integer, rPage As RectangleF) As Rectangle
Parameters
Type Name Description
int pageIdx

0-based page index.

RectangleF rPage

Rectangle on page pageIdx.

Returns
Type Description
Rectangle

Rectangle converted to preview pane client coordinates.

See Also

DocumentToClient(int, PointF)

Converts a PointF in document coordinates to the current C1PreviewPane's client coordinates.

Declaration
public Point DocumentToClient(int pageIdx, PointF pPage)
Public Function DocumentToClient(pageIdx As Integer, pPage As PointF) As Point
Parameters
Type Name Description
int pageIdx

0-based page index.

PointF pPage

Point on page pageIdx.

Returns
Type Description
Point

Point converted to preview pane client coordinates.

See Also