Back to Devexpress

DiagramDataBindingController.LayoutKind Property

windowsforms-devexpress-dot-xtradiagram-dot-diagramdatabindingcontroller-abc23ca6.md

latest2.8 KB
Original Source

DiagramDataBindingController.LayoutKind Property

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

Declaration

csharp
[DiagramCategory(DiagramCategory.Layout)]
public virtual DiagramLayoutKind LayoutKind { get; set; }
vb
<DiagramCategory(DiagramCategory.Layout)>
Public Overridable Property LayoutKind As DiagramLayoutKind

Property Value

TypeDescription
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

csharp
diagramDataBindingController1.BeginInit();
diagramDataBindingController1.LayoutKind = DiagramLayoutKind.Sugiyama;
diagramControl1.OptionsSugiyamaLayout.ColumnSpacing = 300;

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

vb
diagramDataBindingController1.BeginInit()
diagramDataBindingController1.LayoutKind = DiagramLayoutKind.Sugiyama
diagramControl1.OptionsSugiyamaLayout.ColumnSpacing = 300

See Also

DiagramDataBindingController Class

DiagramDataBindingController Members

DevExpress.XtraDiagram Namespace