Book > Book Features > Book Navigation |
At run time users can navigate through the C1Book control using the mouse. Users can click in one of the book zones or can perform a drag-and-drop operation to turn the page. The C1Book control includes navigation-related methods, properties, and events to make it easier for you to determine what page a user is currently viewing, and to set the application's actions as users navigate through a book.
The C1Book.CurrentPage property gets or sets the page that is currently displayed at run time. Note that when you turn a page, the page displayed on the left of the two-page spread will be the C1Book.CurrentPage. Page numbering begins with 0 and page 0 is always displayed on the left. So if C1Book.IsFirstPageOnTheRight property is set to True, the first initial page of the book displayed on the right side will be page 1 with a hidden page 0 on the left side.
You can set the displayed page using the CurrentPage property, but you can also use the TurnPage method to change the current page at run time. The C1Book.TurnPage method turns to book pages forward or back one page.
You can use the C1Book.CurrentPageChanged event to specify actions that happen when the current page is changed. You can also use the C1Book.DragPageStarted and C1Book.DragPageFinished events to specify actions to take when the user turns the page using a drag-and-drop operation.