Back to Devexpress

DiagramControl.TreeLayoutAlignment Property

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramcontrol-f26da862.md

latest2.7 KB
Original Source

DiagramControl.TreeLayoutAlignment Property

Specifies the tree layout alignment. This is a dependency property.

Namespace : DevExpress.Xpf.Diagram

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

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
public Alignment TreeLayoutAlignment { get; set; }
vb
Public Property TreeLayoutAlignment As Alignment

Property Value

TypeDescription
Alignment

A Alignment enumeration value.

|

Available values:

NameDescription
Near

In a left-to-right layout, items are aligned to the left from the layout axis. In a right-to-left layout, items are aligned to the right.

| | Center |

Items are aligned along the layout axis.

| | Far |

In a left-to-right layout, items are aligned to the right from the layout axis. In a right-to-left layout, items are aligned to the left.

|

Remarks

The TreeLayoutAlignment property specifies how the tree layout algorithm arranges shapes relatively to the layout axis. The layout axis is specified using the DiagramControl.TreeLayoutDirection property.

The table below illustrates tree alignments when the DiagramControl.TreeLayoutDirection property is set to LayoutDirection.TopToBottom and LayoutDirection.LeftToRight.

AlignmentTopToBottom directionLeftToRight direction
Near
Center
Far

See Also

DiagramControl Class

DiagramControl Members

DevExpress.Xpf.Diagram Namespace