Back to Devexpress

PdfViewer.DocumentClosing Event

windowsforms-devexpress-dot-xtrapdfviewer-dot-pdfviewer-c9a45b43.md

latest1.8 KB
Original Source

PdfViewer.DocumentClosing Event

Occurs when closing a PDF document.

Namespace : DevExpress.XtraPdfViewer

Assembly : DevExpress.XtraPdfViewer.v25.2.dll

NuGet Package : DevExpress.Win.PdfViewer

Declaration

csharp
public event PdfDocumentClosingEventHandler DocumentClosing
vb
Public Event DocumentClosing As PdfDocumentClosingEventHandler

Event Data

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

PropertyDescription
CancelGets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
IsDocumentModifiedGets 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

PdfViewer Class

PdfViewer Members

DevExpress.XtraPdfViewer Namespace