# ChartSankeyAlignment

Controls the horizontal layers of a directed acyclic Sankey graph.

 Enum  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartSankeyOptions.cs:134](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartSankeyOptions.cs#L134)

**Base**

`Enum`

**Implements**

 `IComparable` `ISpanFormattable` `IFormattable` `IConvertible` 

**Modifiers**

sealed

Controls the horizontal layers of a directed acyclic Sankey graph.

## Inheritance

- Enum
- ChartSankeyAlignment

## Usage

 Explore 8 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 6

- Field [ChartSankeyAlignment.Center](/api/chartforgex-core-chartsankeyalignment/#field-center)
- Field [ChartSankeyAlignment.CenterSources](/api/chartforgex-core-chartsankeyalignment/#field-centersources)
- Field [ChartSankeyAlignment.Justify](/api/chartforgex-core-chartsankeyalignment/#field-justify)
- Field [ChartSankeyAlignment.Left](/api/chartforgex-core-chartsankeyalignment/#field-left)
- Field [ChartSankeyAlignment.Right](/api/chartforgex-core-chartsankeyalignment/#field-right)
- Property [ChartSankeyOptions.Alignment](/api/chartforgex-core-chartsankeyoptions/#property-alignment)

### Accepted by parameters 2

- Extension method [ChartSankeyOptions.Alignment](/api/chartforgex-core-chartsankeyoptions/#extension-alignment-chartforgex-core-chartsankeyoptions-chartforgex-core-chartsankeyalignment) parameter `value`
- Method [ChartSankeyOptionsFluent.Alignment](/api/chartforgex-core-chartsankeyoptionsfluent/#method-alignment-chartforgex-core-chartsankeyoptions-chartforgex-core-chartsankeyalignment) parameter `value`

 Filter members   

    Show inherited   

 

## Inherited Methods

 `public int CompareTo(object? target)` [#](#method-compareto-object) 

Inherited from Enum

Parameters

**target object? required**

Returns

 `int` 

 `public override bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from Enum

Parameters

**obj object? required**

Returns

 `bool` 

 `public override int GetHashCode()` [#](#method-gethashcode) 

Inherited from Enum

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public TypeCode GetTypeCode()` [#](#method-gettypecode) 

Inherited from Enum

Returns

 `TypeCode` 

 `public bool HasFlag(Enum flag)` [#](#method-hasflag-enum) 

Inherited from Enum

Parameters

**flag Enum required**

Returns

 `bool` 

 ToString 4 overloads 

 `public override string ToString()` [#](#method-tostring) 

Inherited from Enum

Returns

 `string` 

 `public string ToString(string? format)` [#](#method-tostring-string) 

Inherited from Enum

Parameters

**format string? required**

Returns

 `string` 

 `public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider) 

Inherited from Enum

 `Obsolete("The provider argument is not used. Use ToString() instead.")` 

Parameters

**provider IFormatProvider? required**

Returns

 `string` 

 `public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider) 

Inherited from Enum

 `Obsolete("The provider argument is not used. Use ToString(String) instead.")` 

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

 `string` 

## Values

 `public const ChartSankeyAlignment Left` [#](#field-left) 

[ChartSankeyOptions.cs:136](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartSankeyOptions.cs#L136)

Uses each node's longest path depth from a source.

Value: `0`

 `public const ChartSankeyAlignment Right` [#](#field-right) 

[ChartSankeyOptions.cs:138](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartSankeyOptions.cs#L138)

Uses the final layer minus each node's longest remaining path to a sink.

Value: `1`

 `public const ChartSankeyAlignment Center` [#](#field-center) 

[ChartSankeyOptions.cs:141](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartSankeyOptions.cs#L141)

Uses the floor of the midpoint between the earliest and latest feasible layers.

Value: `2`

 `public const ChartSankeyAlignment Justify` [#](#field-justify) 

[ChartSankeyOptions.cs:143](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartSankeyOptions.cs#L143)

Uses longest source depths and moves terminal nodes to the final layer.

Value: `3`

 `public const ChartSankeyAlignment CenterSources` [#](#field-centersources) 

[ChartSankeyOptions.cs:146](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartSankeyOptions.cs#L146)

Uses longest source depths and moves each source immediately before its earliest target layer.

Value: `4`

<!-- PowerForge markdown artifact sha256:C924BD4857E6E940CCBE9D831492D68736FA44307D82A1F5FC10C9ABDA33F5BB -->
