PrintDocument for WinForms
ClientToDocument メソッド (C1PreviewPane)


C1.Win.PrintPreview.6 アセンブリ > C1.Win.C1Preview 名前空間 > C1PreviewPane クラス : ClientToDocument メソッド
Point in client coordinates.
OUT: 0-based page index or -1.
OUT: document coordinates on page pageIdx.
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 pt As System.Drawing.Point, _
   ByRef pageIdx As System.Integer, _
   ByRef ptPage 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 pt,
   out System.int pageIdx,
   out System.Drawing.PointF ptPage
)

パラメータ

pt
Point in client coordinates.
pageIdx
OUT: 0-based page index or -1.
ptPage
OUT: document coordinates on page pageIdx.

戻り値の型

True if a page containing the specified point has been found, false otherwise.
参照

C1PreviewPane クラス
C1PreviewPane メンバ