PdfDocumentView.BeforePageDelete Event
Occurs before a page is deleted using the Delete menu item in page's default context menu.
Event Type
EventHandler<PdfVisualPageDeleteEventArgs>
Remarks
This event is raised when the user selects the Delete menu item (
) in the page's default context menu.
It allows the application to cancel the page deletion by setting the PdfVisualPageDeleteEventArgs.AllowDelete property to false.
The code below shows how to handle the event and control the page deletion based on user input:
| C# | |
|---|---|