Skip to main content

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

NuGet Package: DevExpress.Win.Diagram

Declaration

public void AttachToForm()
See Also