Back to Devexpress

SpreadsheetControl.DocumentClosing Event

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontrol-6001e32b.md

latest1.6 KB
Original Source

SpreadsheetControl.DocumentClosing Event

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

Namespace : DevExpress.Xpf.Spreadsheet

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

NuGet Package : DevExpress.Wpf.Spreadsheet

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.

See Also

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.Xpf.Spreadsheet Namespace