Back to Devexpress

SankeyLinearLayoutAlgorithm.NodeAlignment Property

corelibraries-devexpress-dot-xtracharts-dot-sankey-dot-sankeylinearlayoutalgorithm.md

latest2.7 KB
Original Source

SankeyLinearLayoutAlgorithm.NodeAlignment Property

Specifies the node alignment within the Sankey diagram control.

Namespace : DevExpress.XtraCharts.Sankey

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[XtraChartsLocalizableCategory(XtraChartsCategory.Layout)]
public SankeyNodeAlignment NodeAlignment { get; set; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Layout)>
Public Property NodeAlignment As SankeyNodeAlignment

Property Value

TypeDescription
SankeyNodeAlignment

A SankeyNodeAlignment value that specifies the node alignment.

|

Available values:

NameDescriptionExample
Far

Nodes are aligned to the top of the SankeyDiagramControl.

|

| | Center |

Nodes are centered on the Sankey diagram control.

|

| | Near |

Nodes are aligned to the bottom of the Sankey diagram control.

|

|

Remarks

The following code aligns nodes to the top of the SankeyDiagramControl:

csharp
SankeyLinearLayoutAlgorithm layoutAlgorithm = (SankeyLinearLayoutAlgorithm)sankeyDiagramControl1.LayoutAlgorithm;
layoutAlgorithm.NodeAlignment = SankeyNodeAlignment.Far;
vb
Dim layoutAlgorithm As SankeyLinearLayoutAlgorithm = CType(sankeyDiagramControl1.LayoutAlgorithm, SankeyLinearLayoutAlgorithm)
layoutAlgorithm.NodeAlignment = SankeyNodeAlignment.Far

See Also

SankeyLinearLayoutAlgorithm Class

SankeyLinearLayoutAlgorithm Members

DevExpress.XtraCharts.Sankey Namespace