Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public DiagramAutoLayoutSettings SettingsAutoLayout { get; }

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