Skip to main content
A newer version of this page is available. .

DiagramOptionsTreeLayout.Alignment Property

Specifies the tree layout alignment.

Namespace: DevExpress.XtraDiagram.Options

Assembly: DevExpress.XtraDiagram.v18.2.dll

Declaration

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

Property Value

Type Default Description
Alignment **Center**

A Alignment enumeration value.

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 Alignment
DiagramControl
.OptionsTreeLayout.Alignment

Remarks

The Alignment property specifies how the tree layout algorithm arranges shapes relatively to the layout axis. The layout axis is specified using the DiagramOptionsTreeLayout.Direction property.

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

Alignment TopToBottom direction LeftToRight direction
Near Diagram Alignment Near Diagram Layout LtR Near
Center Diagram Alignment Center Diagram Layout LtR Center
Far Diagram Alignment Far Diagram Layout LtR Far
See Also