Back to Devexpress

DiagramControl.SugiyamaLayoutLayersAlignment Property

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramcontrol-4c06b084.md

latest3.5 KB
Original Source

DiagramControl.SugiyamaLayoutLayersAlignment Property

Gets or sets the alignment of the diagram depending on its direction. 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 SugiyamaLayoutLayersAlignment { get; set; }
vb
Public Property SugiyamaLayoutLayersAlignment As Alignment

Property Value

TypeDescription
Alignment

A Alignment enumeration value that specifies the diagram alignment.

|

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 SugiyamaLayoutLayersAlignment property to specify the alignment of the layered diagram on the canvas. The resulting diagram position will differ depending on the DiagramControl.SugiyamaLayoutDirection property value.

The following table describes the effect of the SugiyamaLayoutLayersAlignment property. Grey arrows indicate the layout direction. The diagram is aligned along the red axis.

DiagramControl.SugiyamaLayoutDirection property valueAlignment
TopToBottom
BottomToTop
LeftToRight
RightToLeft

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SugiyamaLayoutLayersAlignment property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-generate-diagram-with-grouped-items/CS/DiagramNestedItemsExample/MainWindow.xaml#L78

xml
SugiyamaLayoutLayerSpacing="400"
SugiyamaLayoutLayersAlignment="Center">
<dxmvvm:Interaction.Behaviors>

See Also

DiagramControl Class

DiagramControl Members

DevExpress.Xpf.Diagram Namespace