[]
        
(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)
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)
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)
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)
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