[]
        
(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)
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)
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.