PrintDocument for WinForms
GetDocumentLocation(Int32,C1PrintDocument) メソッド


C1.PrintDocument.6 アセンブリ > C1.C1Preview 名前空間 > C1LinkTarget クラス > GetDocumentLocation メソッド : GetDocumentLocation(Int32,C1PrintDocument) メソッド
0-based index of the page containing the current link target. This is used for relative targets (such as previous page) and may be -1 if there is no current page in the current context, or the link target is absolute.
The document containing the current link target.
Returns the DocumentLocation pointed to by the current link target.

This method may return null if the position cannot be resolved at this time (e.g. if the document has not generated yet) or the link target points to a position outside the document (e.g a URL or an external document).

シンタックス
'宣言
 
Public Overloads Function GetDocumentLocation( _
   ByVal currentPageIndex As System.Integer, _
   ByVal document As C1PrintDocument _
) As DocumentLocation
'使用法
 
Dim instance As C1LinkTarget
Dim currentPageIndex As System.Integer
Dim document As C1PrintDocument
Dim value As DocumentLocation
 
value = instance.GetDocumentLocation(currentPageIndex, document)
public DocumentLocation GetDocumentLocation( 
   System.int currentPageIndex,
   C1PrintDocument document
)

パラメータ

currentPageIndex
0-based index of the page containing the current link target. This is used for relative targets (such as previous page) and may be -1 if there is no current page in the current context, or the link target is absolute.
document
The document containing the current link target.

戻り値の型

The DocumentLocation containing the target location.
参照

C1LinkTarget クラス
C1LinkTarget メンバ
オーバーロード一覧