[]
        
(Showing Draft Content)

C1.C1Preview.C1LinkTarget.GetPageNo

GetPageNo Method

GetPageNo(C1Page, C1PrintDocument)

Gets the 1-based number of the page pointed to by the current C1LinkTarget. This method may return 0 if the page cannot be resolved at this time (e.g. the document has not generated yet).

Declaration
public int GetPageNo(C1Page currentPage, C1PrintDocument document)
Parameters
Type Name Description
C1Page currentPage

The page containing the current C1LinkTarget object. null may be specified if the C1LinkTarget is associated with an OutlineNode.

C1PrintDocument document

The C1PrintDocument containing the current C1LinkTarget.

Returns
Type Description
int

The target page number.