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 Function ClientToDocument( _
ByVal As System.Drawing.Point, _
ByRef As System.Integer, _
ByRef As System.Drawing.PointF _
) As System.Boolean
'使用法
Dim instance As C1PreviewPane
Dim pt As System.Drawing.Point
Dim pageIdx As System.Integer
Dim ptPage As System.Drawing.PointF
Dim value As System.Boolean
value = instance.ClientToDocument(pt, pageIdx, ptPage)
public System.bool ClientToDocument(
System.Drawing.Point ,
out System.int ,
out System.Drawing.PointF
)
パラメータ
- pt
- Point in client coordinates.
- pageIdx
- OUT: 0-based page index or -1.
- ptPage
- OUT: document coordinates on page .
戻り値の型
True if a page containing the specified point has been found, false otherwise.
参照