Back to Devexpress

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

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

latest2.0 KB
Original Source

DiagramControl.ApplySugiyamaLayout(Direction, 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(
    Direction direction,
    IEnumerable<DiagramItem> items = null
)
vb
Public Sub ApplySugiyamaLayout(
    direction As Direction,
    items As IEnumerable(Of DiagramItem) = Nothing
)

Parameters

NameTypeDescription
directionDirection

A Direction

|

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