Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfViewer.DocumentClosing Event

Occurs when closing a PDF document.

Namespace: DevExpress.XtraPdfViewer

Assembly: DevExpress.XtraPdfViewer.v24.2.dll

NuGet Package: DevExpress.Win.PdfViewer

#Declaration

public event PdfDocumentClosingEventHandler DocumentClosing

#Event Data

The DocumentClosing event's data class is PdfDocumentClosingEventArgs. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
IsDocumentModified Gets a value indicating whether or not the current PDF has been modified.

#Remarks

The PDF Viewer does not show the Document Closing message box (used to save changes made by a user to a document before closing it) if the DocumentClosing event is handled.

See Also