DiagramSettings.SettingsAutoLayout Property

Specifies an auto-layout algorithm that the Diagram extension uses to build a diagram.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v20.2.dll

Declaration

public DiagramAutoLayoutSettings SettingsAutoLayout { get; }
Public ReadOnly Property SettingsAutoLayout As DiagramAutoLayoutSettings

Property Value

Type Description
DiagramAutoLayoutSettings

An object that contains the auto-layout settings.

Remarks

@Html.DevExpress().Diagram(settings => {
    settings.Name = "Diagram";
    settings.SettingsAutoLayout.Type = DevExpress.Web.ASPxDiagram.DiagramAutoLayout.Layered;
    settings.SettingsAutoLayout.Orientation = Orientation.Vertical;
    ...
}).Bind(Model.Objects, Model.Connections).GetHtml()

Run Demo: Node and Edge Data Sources

See Also