Skip to main content

DiagramControl.TreeLayoutBreadthAlignment Property

Gets or sets the tree diagram horizontal alignment relative to the layout direction axis. This is a dependency property.

Namespace: DevExpress.Xpf.Diagram

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

NuGet Package: DevExpress.Wpf.Diagram

Declaration

public Alignment TreeLayoutBreadthAlignment { get; set; }

Property Value

Type Description
Alignment

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

Available values:

Name Description
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 TreeLayoutBreadthAlignment property to specify the horizontal 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 breadth alignment for the tree diagram when the DiagramControl.TreeLayoutDirection property is set to LayoutDirection.TopToBottom.

tree layout breadth

The DiagramControl.TreeLayoutDepthAlignment property specifies the vertical alignment of the tree diagram.

See Also