Converts a point in the current C1PreviewPane's client coordinates,
to document coordinates.
Namespace:
C1.Win.C1PreviewDocument 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.
Assembly: C1.Win.C1Report.2 (in C1.Win.C1Report.2.dll)
Syntax
C# |
---|
public bool ClientToDocument( Point pt, out int pageIdx, out PointF ptPage ) |
Visual Basic |
---|
Public Function ClientToDocument ( _ pt As Point, _ <OutAttribute> ByRef pageIdx As Integer, _ <OutAttribute> ByRef ptPage As PointF _ ) As Boolean |
Parameters
- pt
- Type: System.Drawing..::..Point
Point in client coordinates.
- pageIdx
- Type: System..::..Int32%
OUT: 0-based page index or -1.
- ptPage
- Type: System.Drawing..::..PointF%
OUT: document coordinates on page pageIdx.