DiagramControl.AttachToForm() Method
Binds the form’s Text property to the name of the current document and subscribes the diagram to the form’s OnClosing event. When the end-user attempts to close the window with the diagram that contains unsaved changes, a dialog window is invoked prompting the user to save changes.
Namespace: DevExpress.XtraDiagram
Assembly: DevExpress.XtraDiagram.v21.2.dll
NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Diagram
Declaration
See Also