Table of Contents

Class ExcelChartLegend

Namespace
OfficeOpenXml.Drawing.Chart
Assembly
EPPlus.dll

A chart legend

public class ExcelChartLegend : XmlHelper
Inheritance
ExcelChartLegend
Derived
Inherited Members

Properties

Border

The Border style

public ExcelDrawingBorder Border { get; }

Property Value

ExcelDrawingBorder

Effect

Effects on the legend shape. Note that the Text effects are set using the TextSettings property.

public ExcelDrawingEffectStyle Effect { get; }

Property Value

ExcelDrawingEffectStyle

Entries

A list of individual settings for legend entries.

public EPPlusReadOnlyList<ExcelChartLegendEntry> Entries { get; }

Property Value

EPPlusReadOnlyList<ExcelChartLegendEntry>

Fill

The Fill style

public ExcelDrawingFill Fill { get; }

Property Value

ExcelDrawingFill

Font

The Font properties

public ExcelTextFont Font { get; }

Property Value

ExcelTextFont

Overlay

If the legend overlays other objects

public virtual bool Overlay { get; set; }

Property Value

bool

Position

The position of the Legend

public virtual eLegendPosition Position { get; set; }

Property Value

eLegendPosition

TextBody

Access to text body properties

public ExcelTextBody TextBody { get; }

Property Value

ExcelTextBody

TextSettings

Text settings like fills, text outlines and effects

public ExcelDrawingTextSettings TextSettings { get; }

Property Value

ExcelDrawingTextSettings

ThreeD

3D properties

public ExcelDrawing3D ThreeD { get; }

Property Value

ExcelDrawing3D

Methods

Add()

Adds a legend to the chart

public virtual void Add()

Remove()

Remove the legend

public void Remove()