# ChartLegendPosition

Defines where a chart legend is placed relative to the plot area.

 Enum  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartLegendPosition.cs:6](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartLegendPosition.cs#L6)

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

Defines where a chart legend is placed relative to the plot area.

## Inheritance

- Enum
- ChartLegendPosition

## Usage

 Explore 14 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 11

- Property [ChartLegendOptions.Position](/api/chartforgex-core-chartlegendoptions/#property-position)
- Field [ChartLegendPosition.Bottom](/api/chartforgex-core-chartlegendposition/#field-bottom)
- Field [ChartLegendPosition.BottomLeft](/api/chartforgex-core-chartlegendposition/#field-bottomleft)
- Field [ChartLegendPosition.BottomRight](/api/chartforgex-core-chartlegendposition/#field-bottomright)
- Field [ChartLegendPosition.Left](/api/chartforgex-core-chartlegendposition/#field-left)
- Field [ChartLegendPosition.Right](/api/chartforgex-core-chartlegendposition/#field-right)
- Field [ChartLegendPosition.Top](/api/chartforgex-core-chartlegendposition/#field-top)
- Field [ChartLegendPosition.TopLeft](/api/chartforgex-core-chartlegendposition/#field-topleft)
- Field [ChartLegendPosition.TopRight](/api/chartforgex-core-chartlegendposition/#field-topright)
- Property [VisualFrame.LegendPosition](/api/chartforgex-rendering-visualframe/#property-legendposition)
- Property [VisualArtifactInterchangeWaterfallArtifact.LegendPosition](/api/chartforgex-visualartifacts-visualartifactinterchangewaterfallartifact/#property-legendposition)

### Accepted by parameters 3

- Extension method [ChartLegendOptions.Position](/api/chartforgex-core-chartlegendoptions/#extension-position-chartforgex-core-chartlegendoptions-chartforgex-core-chartlegendposition) parameter `value`
- Method [ChartLegendOptionsFluent.Position](/api/chartforgex-core-chartlegendoptionsfluent/#method-position-chartforgex-core-chartlegendoptions-chartforgex-core-chartlegendposition) parameter `value`
- Constructor [VisualFrame.VisualFrame](/api/chartforgex-rendering-visualframe/#constructor-ctor-string-string-nullable-system-boolean-nullable-chartforgex-core-chartlegendposition-boolean-boolean-chartforgex-typography-textstyle-chartforgex-typography-textstyle-chartforgex-typography-textstyle-nullable-system-int32-double-boolean-string) parameter `legendPosition`

 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 ChartLegendPosition Bottom` [#](#field-bottom) 

[ChartLegendPosition.cs:8](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartLegendPosition.cs#L8)

Places the legend below the plot and centers rows horizontally.

Value: `0`

 `public const ChartLegendPosition Top` [#](#field-top) 

[ChartLegendPosition.cs:10](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartLegendPosition.cs#L10)

Places the legend above the plot and centers rows horizontally.

Value: `1`

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

[ChartLegendPosition.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartLegendPosition.cs#L12)

Places the legend to the left of the plot.

Value: `2`

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

[ChartLegendPosition.cs:14](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartLegendPosition.cs#L14)

Places the legend to the right of the plot.

Value: `3`

 `public const ChartLegendPosition TopLeft` [#](#field-topleft) 

[ChartLegendPosition.cs:16](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartLegendPosition.cs#L16)

Places the legend above the plot and aligns rows left.

Value: `4`

 `public const ChartLegendPosition TopRight` [#](#field-topright) 

[ChartLegendPosition.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartLegendPosition.cs#L18)

Places the legend above the plot and aligns rows right.

Value: `5`

 `public const ChartLegendPosition BottomLeft` [#](#field-bottomleft) 

[ChartLegendPosition.cs:20](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartLegendPosition.cs#L20)

Places the legend below the plot and aligns rows left.

Value: `6`

 `public const ChartLegendPosition BottomRight` [#](#field-bottomright) 

[ChartLegendPosition.cs:22](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartLegendPosition.cs#L22)

Places the legend below the plot and aligns rows right.

Value: `7`

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