Skip to main content

DiagramOptionsTreeLayout.DepthAlignment Property

Gets or sets the tree diagram vertical alignment relative to the layout direction axis.

Namespace: DevExpress.XtraDiagram.Options

Assembly: DevExpress.XtraDiagram.v24.1.dll

NuGet Package: DevExpress.Win.Diagram

Declaration

[DefaultValue(Alignment.Near)]
[DiagramCategory(DiagramCategory.Layout)]
public virtual Alignment DepthAlignment { get; set; }

Property Value

Type Default Description
Alignment Near

A Alignment enumeration value that specifies the vertical 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.

Property Paths

You can access this nested property as listed below:

Object Type Path to DepthAlignment
DiagramControl
.OptionsTreeLayout .DepthAlignment

Remarks

Use the DepthAlignment property to specify the vertical alignment of the tree diagram on the canvas. The resulting diagram position will differ depending on the DiagramOptionsTreeLayout.Direction property value.

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

tree layout depth

The DiagramOptionsTreeLayout.BreadthAlignment property specifies the horizontal alignment of the tree diagram.

See Also