Back to Devexpress

DiagramControl.ApplySugiyamaLayout(LayoutDirection, IEnumerable<DiagramItem>) Method

windowsforms-devexpress-dot-xtradiagram-dot-diagramcontrol-dot-applysugiyamalayout-x28-devexpress-dot-diagram-dot-core-dot-layout-dot-layoutdirection-system-dot-collections-dot-generic-dot-ienumerable-devexpress-dot-xtradiagram-dot-diagramitem-x29.md

latest2.1 KB
Original Source

DiagramControl.ApplySugiyamaLayout(LayoutDirection, IEnumerable<DiagramItem>) Method

Applies the Sugiyama (layered) layout algorithm.

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
public void ApplySugiyamaLayout(
    LayoutDirection direction,
    IEnumerable<DiagramItem> items = null
)
vb
Public Sub ApplySugiyamaLayout(
    direction As LayoutDirection,
    items As IEnumerable(Of DiagramItem) = Nothing
)

Parameters

NameTypeDescription
directionLayoutDirection

A LayoutDirection enumeration value.

|

Optional Parameters

NameTypeDefaultDescription
itemsIEnumerable<DiagramItem>null

A collection of items to which to apply the algorithm.

|

Remarks

The items collection should include connectors.

To learn more, see Automatic Layout.

See Also

DiagramControl Class

DiagramControl Members

DevExpress.XtraDiagram Namespace