Notebook.getCurrentPage

int getCurrentPage()

Returns the page number of the current page.

Returns

the index (starting from 0) of the current

page in the notebook. If the notebook has no pages, then -1 will be returned.