Skip to main content
All docs
V21.2

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

SnapControl.DocumentClosing Event

Occurs before closing a SnapDocument.

Namespace: DevExpress.Snap

Assembly: DevExpress.Snap.v21.2.dll

NuGet Package: DevExpress.Win.Snap

#Declaration

public event DocumentClosingEventHandler DocumentClosing

#Event Data

The DocumentClosing event's data class is DocumentClosingEventArgs. 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.
Handled Specifies whether or not the SnapControl.DocumentClosing event was handled.
InterimDataSources Provides access to the interim document data sources that have been created by an end-user during a document editing session.

#Remarks

Handle this event to obtain interim document data sources that have been created by an end-user (e.g., to save them for another document editing session) via the DocumentClosingEventArgs.InterimDataSources property.

See Also