Back to Devexpress

ISpreadsheetComponent.DocumentClosing Event

officefileapi-devexpress-dot-spreadsheet-dot-ispreadsheetcomponent-447a8a6e.md

latest1.7 KB
Original Source

ISpreadsheetComponent.DocumentClosing Event

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

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
event CancelEventHandler DocumentClosing
vb
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.

See Also

ISpreadsheetComponent Interface

ISpreadsheetComponent Members

DevExpress.Spreadsheet Namespace