Back to Devexpress

Workbook.DocumentClosing Event

officefileapi-devexpress-dot-spreadsheet-dot-workbook-6d30cf5b.md

latest2.0 KB
Original Source

Workbook.DocumentClosing Event

Occurs when a document that has not yet been saved is about to be closed.

You need a license for the DevExpress Office File API Subscription or DevExpress Universal Subscription to use this property in production code.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Docs.v25.2.dll

NuGet Package : DevExpress.Document.Processor

Declaration

csharp
public event CancelEventHandler DocumentClosing
vb
Public Event DocumentClosing As CancelEventHandler

Event Data

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

PropertyDescription
CancelGets or sets a value indicating whether the event should be canceled.

Remarks

Handle the DocumentClosing event to specify the actions to perform before the document is closed. To cancel closing, set the e.Cancel value to true.

Note

The DocumentClosing event is raised only if the document has been modified.

Implements

DocumentClosing

See Also

Workbook Class

Workbook Members

DevExpress.Spreadsheet Namespace