Back to Devexpress

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

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

latest2.0 KB
Original Source

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

Applies the Sugiyama (layered) layout algorithm.

Namespace : DevExpress.Xpf.Diagram

Assembly : DevExpress.Xpf.Diagram.v25.2.dll

NuGet Package : DevExpress.Wpf.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.Xpf.Diagram Namespace