Class LegendPosition
Enum that represents the position of the legend. Setting position to None removes legend.
Inheritance
Namespace: IronXL.Drawing.Charts
Assembly: IronXL.dll
Syntax
public sealed class LegendPosition : Enum
LegendPosition places the legend on a chart relative to the plot area, passed to IChart.SetLegendPosition. Right and Bottom are the conventional placements, with Top and Left as the other edges and TopRight for the upper corner. None hides the legend entirely, which suits a single-series chart that needs no key. The create Excel chart how-to covers styling a chart and its legend.
chart.SetLegendPosition(LegendPosition.Right);Fields
Bottom
The bottom position of the legend.
Declaration
public const LegendPosition Bottom
Field Value
| Type | Description |
|---|---|
| LegendPosition |
Left
The left position of the legend.
Declaration
public const LegendPosition Left
Field Value
| Type | Description |
|---|---|
| LegendPosition |
None
Value that stands for hidden legend. This is set by default
Declaration
public const LegendPosition None
Field Value
| Type | Description |
|---|---|
| LegendPosition |
Right
The right position of the legend.
Declaration
public const LegendPosition Right
Field Value
| Type | Description |
|---|---|
| LegendPosition |
Top
The top position of the legend.
Declaration
public const LegendPosition Top
Field Value
| Type | Description |
|---|---|
| LegendPosition |
TopRight
The top right position of the legend.
Declaration
public const LegendPosition TopRight
Field Value
| Type | Description |
|---|---|
| LegendPosition |
value__
Declaration
public int value__
Field Value
| Type | Description |
|---|---|
| System.Int32 |