[]
        
(Showing Draft Content)

C1.C1Preview.OutputRange.GetNextPage

GetNextPage Method

GetNextPage(int)

Returns the page number in the range following the specified one, or -1 if the specified number was the last one.

Declaration
public int GetNextPage(int pageNumber)
Public Function GetNextPage(pageNumber As Integer) As Integer
Parameters
Type Name Description
int pageNumber

The current page number.

Returns
Type Description
int

The next page number or -1 if there's none.

GetNextPage(int, ref int)

Returns the page number in the range following the specified one, or -1 if the specified number was the last one.

Declaration
public int GetNextPage(int pageNumber, ref int cookie)
Public Function GetNextPage(pageNumber As Integer, ByRef cookie As Integer) As Integer
Parameters
Type Name Description
int pageNumber

The current page number.

int cookie

A cookie used to avoid infinite loops in cases where the same page number appears in several ranges. Set this value to 0 before the first call to this method.

Returns
Type Description
int

The next page number or -1 if there's none.