Class ExcelChartSeries<T>
- Namespace
- OfficeOpenXml.Drawing.Chart
- Assembly
- EPPlus.dll
Collection class for chart series
public class ExcelChartSeries<T> : IEnumerable<T>, IEnumerable where T : ExcelChartSerie
Type Parameters
T
- Inheritance
-
ExcelChartSeries<T>
- Implements
-
IEnumerable<T>
- Derived
- Inherited Members
Constructors
ExcelChartSeries()
public ExcelChartSeries()
Properties
Chart
A reference to the chart object
public ExcelChart Chart { get; }
Property Value
Count
Number of items in the collection
public int Count { get; }
Property Value
this[int]
Returns the serie at the specified position.
public T this[int PositionID] { get; }
Parameters
PositionID
intThe position of the series.
Property Value
- T
Methods
Add(ExcelRangeBase)
Adds a new serie to the chart. Do not apply to pivotcharts.
public virtual T Add(ExcelRangeBase Serie)
Parameters
Serie
ExcelRangeBaseThe value serie range
Returns
- T
The serie
Add(ExcelRangeBase, ExcelRangeBase)
Adds a new serie to the chart. Do not apply to pivotcharts.
public virtual T Add(ExcelRangeBase Serie, ExcelRangeBase XSerie)
Parameters
Serie
ExcelRangeBaseThe Y-Axis range
XSerie
ExcelRangeBaseThe X-Axis range
Returns
- T
The serie
Add(string)
Adds a new serie to the chart. Do not apply to pivotcharts.
public virtual T Add(string Serie)
Parameters
Serie
stringThe value serie range
Returns
- T
The serie
Add(string, string)
Adds a new serie to the chart.Do not apply to pivotcharts.
public virtual T Add(string SerieAddress, string XSerieAddress)
Parameters
Returns
- T
The serie
AddSeries(string, string, string)
Adds a new serie to the chart
protected T AddSeries(string SerieAddress, string XSerieAddress, string bubbleSizeAddress)
Parameters
SerieAddress
stringThe Y-Axis range
XSerieAddress
stringThe X-Axis range
bubbleSizeAddress
stringBubble chart size
Returns
- T
Delete(int)
Delete the chart at the specific position
public void Delete(int PositionID)
Parameters
PositionID
intZero based
GetEnumerator()
Gets the enumerator for the collection
public IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>
The enumerator