Skip to main content

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

DiagramControl.CustomSaveDocument Event

Fires when the diagram is about to be saved (when an end-user uses Save actions in the Diagram’s Ribbon menu, or when the DiagramControl.SaveFile/DiagramControl.SaveFileAs method is called). The event allows you to implement custom saving logic.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v24.2.dll

NuGet Package: DevExpress.Win.Diagram

#Declaration

[DiagramCategory(DiagramCategory.DiagramDocument)]
public event EventHandler<DiagramCustomSaveDocumentEventArgs> CustomSaveDocument

#Event Data

The CustomSaveDocument event's data class is DevExpress.XtraDiagram.DiagramCustomSaveDocumentEventArgs.

#Remarks

The CustomSaveDocument event fires in the following cases:

The CustomSaveDocument does not fire when saving the diagram with the DiagramControl.SaveDocument method.

See Also