windowsforms-devexpress-dot-xtradiagram-dot-diagramcontrol-0b72859b.md
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.v25.2.dll
NuGet Package : DevExpress.Win.Diagram
[DiagramCategory(DiagramCategory.DiagramDocument)]
public event EventHandler<DiagramCustomSaveDocumentEventArgs> CustomSaveDocument
<DiagramCategory(DiagramCategory.DiagramDocument)>
Public Event CustomSaveDocument As EventHandler(Of DiagramCustomSaveDocumentEventArgs)
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
CustomSaveDocument