Skip to main content

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