The following properties of the page navigator control which actions are allowed:
- AllowAdd - specifies whether adding and duplicating pages is allowed. When set to false, both the "Add" button and the "Duplicate" context menu item are hidden.
- AllowDelete - specifies whether deleting pages is allowed. When set to false, the "Delete" context menu item is hidden.
- AllowRename - specifies whether renaming pages is allowed. When set to false, the "Rename" context menu item is hidden.
- AllowPagePropertiesChange - specifies whether editing of page properties is allowed. When set to false, the "Page Properties" context menu item is hidden.
If you disable all actions, both the "Add" button and the page context menu of the page navigator will be hidden:
Hide the Add button and the page context menu |
Copy Code
|
---|---|
drawingView.PageNavigator.AllowAdd = false; drawingView.PageNavigator.AllowDelete = false; drawingView.PageNavigator.AllowRename = false; drawingView.PageNavigator.AllowPagePropertiesChange = false; |