PrintDocument for WPF | ComponentOne
C1.WPF.PrintDocument.4.5.2 Assembly / C1.C1Preview Namespace / C1LinkTargetFile Class / GetPageNo Method
The page containing the current C1LinkTarget object. null may be specified if the C1LinkTarget is associated with an OutlineNode.
The C1PrintDocument containing the current C1LinkTarget.

In This Topic
    GetPageNo Method (C1LinkTargetFile)
    In This Topic
    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).
    Syntax
    'Declaration
     
    Public Function GetPageNo( _
       ByVal currentPage As C1Page, _
       ByVal document As C1PrintDocument _
    ) As Integer
    public int GetPageNo( 
       C1Page currentPage,
       C1PrintDocument document
    )

    Parameters

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

    Return Value

    The target page number.
    See Also