'Declaration Public Overloads Function GetNextPage( _ ByVal pageNumber As Integer, _ ByRef cookie As Integer _ ) As Integer
public int GetNextPage( int pageNumber, ref int cookie )
Parameters
- pageNumber
- The current page number.
- 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.
Return Value
The next page number or -1 if there's none.