Back to Devexpress

DiagramControl.AttachToForm() Method

windowsforms-devexpress-dot-xtradiagram-dot-diagramcontrol-13f31054.md

latest1.2 KB
Original Source

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

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
public void AttachToForm()
vb
Public Sub AttachToForm

See Also

DetachFromForm()

Title

DiagramControl Class

DiagramControl Members

DevExpress.XtraDiagram Namespace