PrintDocument for WinForms | ComponentOne
C1.PrintDocument.4.8 Assembly / C1.C1Preview.Export Namespace / ExportUtil Class / GetMaxPageNumber Method / GetMaxPageNumber(Object,Int32) Method
The target document.
The page count.

In This Topic
    GetMaxPageNumber(Object,Int32) Method
    In This Topic
    Gets the maximum valid physical page number (1-based index) for the specified document.
    Syntax
    'Declaration
     
    Public Overloads Shared Function GetMaxPageNumber( _
       ByVal document As Object, _
       ByVal pageCount As Integer _
    ) As Integer
    public static int GetMaxPageNumber( 
       object document,
       int pageCount
    )

    Parameters

    document
    The target document.
    pageCount
    The page count.

    Return Value

    The maximum page number valid for this document.
    See Also