PdfDocumentOutlineView.BeforeOutlineItemAdd Event
Occurs before an outline item is added to a PDF document.
Event Type
EventHandler<PdfVisualOutlineItemAddEventArgs>
Remarks
This event enables the application logic to decide when a new outline item can be added to a PDF document.
Example
The code below shows how to ask for user confirmation before adding an outline item. The event can also be used to set the title of the new outline item before it is added to the document.