A newer version of this page is available. Switch to the current version.

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.v19.1.dll


public event EventHandler<DiagramCustomSaveDocumentEventArgs> CustomSaveDocument

Event Data

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


The CustomSaveDocument event fires in the following cases:

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

See Also