Back to Devexpress

DiagramControl.CustomSaveDocument Event

windowsforms-devexpress-dot-xtradiagram-dot-diagramcontrol-0b72859b.md

latest2.9 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
[DiagramCategory(DiagramCategory.DiagramDocument)]
public event EventHandler<DiagramCustomSaveDocumentEventArgs> CustomSaveDocument
vb
<DiagramCategory(DiagramCategory.DiagramDocument)>
Public Event CustomSaveDocument As EventHandler(Of DiagramCustomSaveDocumentEventArgs)

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

DocumentSource

CustomSaveDocument

CustomLoadDocument

ShowingSaveDialog

ShowingOpenDialog

OpenFile()

SaveFile()

SaveFileAs()

ExceptionMessage

DiagramControl Class

DiagramControl Members

DevExpress.XtraDiagram Namespace