[]
Returns the page number in the range following the specified one, or -1 if the specified number was the last one.
public int GetNextPage(int pageNumber)
Type | Name | Description |
---|---|---|
int | pageNumber | The current page number. |
Type | Description |
---|---|
int | The next page number or -1 if there's none. |
Returns the page number in the range following the specified one, or -1 if the specified number was the last one.
public int GetNextPage(int pageNumber, ref int cookie)
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. |
Type | Description |
---|---|
int | The next page number or -1 if there's none. |