DiagramOptionsSugiyamaLayout.ColumnsAlignment Property
Gets or sets the alignment of the diagram depending on its direction.
Namespace: DevExpress.XtraDiagram.Options
Assembly: DevExpress.XtraDiagram.v24.2.dll
Declaration
[DefaultValue(Alignment.Center)]
[DiagramCategory(DiagramCategory.Layout)]
public virtual Alignment ColumnsAlignment { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Alignment | Center | A Alignment enumeration value that specifies the diagram alignment. |
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 ColumnsAlignment |
---|---|
DiagramControl |
|
Remarks
Use the ColumnsAlignment property to specify the alignment of the layered diagram on the canvas. The resulting diagram position will differ depending on the DiagramOptionsSugiyamaLayout.Direction property value.
The following table describes the effect of the ColumnsAlignment property. Grey arrows indicate the layout direction. The diagram is aligned along the red axis.
DiagramOptionsSugiyamaLayout.Direction property value | Alignment |
---|---|
TopToBottom | |
BottomToTop | |
LeftToRight | |
RightToLeft |