Back to Devexpress

DiagramControl.TreeLayoutDepthAlignment Property

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramcontrol-1567b638.md

latest2.6 KB
Original Source

DiagramControl.TreeLayoutDepthAlignment Property

Gets or sets the tree diagram vertical alignment relative to the layout direction axis. 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 TreeLayoutDepthAlignment { get; set; }
vb
Public Property TreeLayoutDepthAlignment As Alignment

Property Value

TypeDescription
Alignment

A Alignment enumeration value that specifies the vertical alignment of the tree diagram.

|

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

Use the TreeLayoutDepthAlignment property to specify the vertical alignment of the tree diagram on the canvas. The resulting diagram position will differ depending on the DiagramControl.TreeLayoutDirection property value.

The image below illustrates the depth alignment for the tree diagram when the DiagramControl.TreeLayoutDirection property is set to LayoutDirection.TopToBottom.

The DiagramControl.TreeLayoutBreadthAlignment property specifies the horizontal alignment of the tree diagram.

See Also

TreeLayoutBreadthAlignment

TreeLayoutDirection

DiagramControl Class

DiagramControl Members

DevExpress.Xpf.Diagram Namespace