PrintDocument for WPF | ComponentOne
C1.WPF.PrintDocument.4.6.2 Assembly / C1.C1Preview Namespace / C1LinkTargetExternalAnchor Class / GetDocumentLocation Method / GetDocumentLocation(Int32,C1MultiDocument) Method
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.

In This Topic
    GetDocumentLocation(Int32,C1MultiDocument) Method
    In This Topic
    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).

    Syntax
    'Declaration
     
    Public Overloads Function GetDocumentLocation( _
       ByVal currentPageIndex As Integer, _
       ByVal document As C1MultiDocument _
    ) As DocumentLocation
    public DocumentLocation GetDocumentLocation( 
       int currentPageIndex,
       C1MultiDocument document
    )

    Parameters

    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.

    Return Value

    The DocumentLocation containing the target location.
    See Also