[]
Converts a point in the current C1PreviewPane's client coordinates, to document coordinates.
Document coordinates are also pixels, but are relative to a specific page's left top corner, and do not depend on the current zoom factor.
For instance, a client point that is over a page's right top corner would yield a point with document coordinates (816,0) on a 96 DPI resolution display for a 8.5 in wide page (816 is 8.5 multiplied by 96), regardless of the current zoom factor or document scroll position in the preview.
public bool ClientToDocument(Point pt, out int pageIdx, out PointF ptPage)
Type | Name | Description |
---|---|---|
Point | pt | Point in client coordinates. |
int | pageIdx | OUT: 0-based page index or -1. |
PointF | ptPage | OUT: document coordinates on page |
Type | Description |
---|---|
bool | True if a page containing the specified point has been found, false otherwise. |