Back to Devexpress

DiagramDataBindingControllerBase.BeginInit() Method

windowsforms-devexpress-dot-xtradiagram-dot-diagramdatabindingcontrollerbase-715a17f2.md

latest2.9 KB
Original Source

DiagramDataBindingControllerBase.BeginInit() Method

Starts the DiagramDataBindingControllerBase‘s initialization. Initialization occurs at runtime.

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
public void BeginInit()
vb
Public Sub BeginInit

Remarks

The Visual Studio .NET design-time environment calls this method to start initializing a component used on a form, or by another component. The DiagramDataBindingControllerBase.EndInit method ends the initialization. Use the BeginInit and EndInit methods to prevent the control from being used until it has been completely initialized.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BeginInit() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-generate-diagram-with-grouped-items/CS/DiagramDataControllerBehavior/Form1.cs#L13

csharp
diagramDataBindingController1.BeginInit();
diagramDataBindingController1.LayoutKind = DiagramLayoutKind.Sugiyama;

winforms-generate-diagram-with-grouped-items/VB/DiagramDataControllerBehavior/Form1.vb#L15

vb
Dim viewModel = New ViewModel()
diagramDataBindingController1.BeginInit()
diagramDataBindingController1.LayoutKind = DiagramLayoutKind.Sugiyama

See Also

EndInit()

DiagramDataBindingControllerBase Class

DiagramDataBindingControllerBase Members

DevExpress.XtraDiagram Namespace