Back to Devexpress

DiagramControl.ApplyTreeLayout(LayoutDirection, IEnumerable<DiagramItem>, Nullable<SplitToConnectedComponentsMode>) Method

windowsforms-devexpress-dot-xtradiagram-dot-diagramcontrol-dot-applytreelayout-x28-layoutdirection-ienumerable-diagramitem-nullable-splittoconnectedcomponentsmode-x29.md

latest2.8 KB
Original Source

DiagramControl.ApplyTreeLayout(LayoutDirection, IEnumerable<DiagramItem>, Nullable<SplitToConnectedComponentsMode>) Method

Applies the tree layout algorithm.

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

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

Parameters

NameTypeDescription
directionLayoutDirection

A LayoutDirection enumeration value.

|

Optional Parameters

NameTypeDefaultDescription
itemsIEnumerable<DiagramItem>null

A collection of items to which to apply the algorithm.

| | splitMode | Nullable<SplitToConnectedComponentsMode> | null |

A SplitToConnectedComponentsMode enumeration value specifying whether to apply the layout algorithm only to items that are connected to at least one other item.

|

Remarks

The items collection should include connectors.

To learn more, see Automatic Layout.

See Also

DiagramControl Class

DiagramControl Members

DevExpress.XtraDiagram Namespace