Show / Hide Table of Contents

Class ExcelChartLegend

A chart legend

Inheritance
object
XmlHelper
ExcelChartLegend
ExcelChartExLegend
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OfficeOpenXml.Drawing.Chart
Assembly: EPPlus.dll
Syntax
public class ExcelChartLegend : XmlHelper

Properties

Border

The Border style

Declaration
public ExcelDrawingBorder Border { get; }
Property Value
Type Description
ExcelDrawingBorder

Effect

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

Declaration
public ExcelDrawingEffectStyle Effect { get; }
Property Value
Type Description
ExcelDrawingEffectStyle

Entries

A list of individual settings for legend entries.

Declaration
public EPPlusReadOnlyList<ExcelChartLegendEntry> Entries { get; }
Property Value
Type Description
EPPlusReadOnlyList<ExcelChartLegendEntry>

Fill

The Fill style

Declaration
public ExcelDrawingFill Fill { get; }
Property Value
Type Description
ExcelDrawingFill

Font

The Font properties

Declaration
public ExcelTextFont Font { get; }
Property Value
Type Description
ExcelTextFont

Overlay

If the legend overlays other objects

Declaration
public virtual bool Overlay { get; set; }
Property Value
Type Description
bool

Position

The position of the Legend

Declaration
public virtual eLegendPosition Position { get; set; }
Property Value
Type Description
eLegendPosition

TextBody

Access to text body properties

Declaration
public ExcelTextBody TextBody { get; }
Property Value
Type Description
ExcelTextBody

TextSettings

Text settings like fills, text outlines and effects

Declaration
public ExcelDrawingTextSettings TextSettings { get; }
Property Value
Type Description
ExcelDrawingTextSettings

ThreeD

3D properties

Declaration
public ExcelDrawing3D ThreeD { get; }
Property Value
Type Description
ExcelDrawing3D

Methods

Add()

Adds a legend to the chart

Declaration
public virtual void Add()

Remove()

Remove the legend

Declaration
public void Remove()
In this article
Back to top Generated by DocFX