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


public void AttachToForm()
Public Sub AttachToForm
See Also