Class ExcelChartLegend
A chart legend
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml.Drawing.Chart
Assembly: EPPlus.dll
Syntax
public class ExcelChartLegend : XmlHelper, IDrawingStyle, IDrawingStyleBase, IStyleMandatoryProperties
Fields
_chart
Declaration
protected ExcelChart _chart
Field Value
Type | Description |
---|---|
ExcelChart |
_nsPrefix
Declaration
protected string _nsPrefix
Field Value
Type | Description |
---|---|
System.String |
Properties
Border
The Border style
Declaration
public ExcelDrawingBorder Border { get; }
Property Value
Type | Description |
---|---|
ExcelDrawingBorder |
Effect
Effects
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 |
---|---|
System.Boolean |
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 |
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()