windowsforms-devexpress-dot-xtradiagram-dot-diagramdatabindingcontroller-abc23ca6.md
Specifies the automatic layout to be applied to the generated diagram.
Namespace : DevExpress.XtraDiagram
Assembly : DevExpress.XtraDiagram.v25.2.dll
NuGet Package : DevExpress.Win.Diagram
[DiagramCategory(DiagramCategory.Layout)]
public virtual DiagramLayoutKind LayoutKind { get; set; }
<DiagramCategory(DiagramCategory.Layout)>
Public Overridable Property LayoutKind As DiagramLayoutKind
| Type | Description |
|---|---|
| DevExpress.Diagram.Core.DiagramLayoutKind |
A DevExpress.Diagram.Core.DiagramLayoutKind enumeration value.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the LayoutKind property.
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#L14
diagramDataBindingController1.BeginInit();
diagramDataBindingController1.LayoutKind = DiagramLayoutKind.Sugiyama;
diagramControl1.OptionsSugiyamaLayout.ColumnSpacing = 300;
winforms-generate-diagram-with-grouped-items/VB/DiagramDataControllerBehavior/Form1.vb#L16
diagramDataBindingController1.BeginInit()
diagramDataBindingController1.LayoutKind = DiagramLayoutKind.Sugiyama
diagramControl1.OptionsSugiyamaLayout.ColumnSpacing = 300
See Also
DiagramDataBindingController Class