Class ExcelChartCollection
Enumerates charttypes
Inheritance
Inherited Members
Namespace: OfficeOpenXml.Drawing.Chart
Assembly: EPPlus.dll
Syntax
public class ExcelChartCollection : IEnumerable<ExcelChart>, IEnumerable
Properties
Count
Number of items in the collection
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System. |
Item[Int32]
Returns a chart at the specific position.
Declaration
public ExcelChart this[int PositionID] { get; }
Parameters
Type | Name | Description |
---|---|---|
System. |
PositionID | The position of the chart. 0-base |
Property Value
Type | Description |
---|---|
Excel |
Methods
Add(eChartType)
Add a new charttype to the chart
Declaration
public ExcelChart Add(eChartType chartType)
Parameters
Type | Name | Description |
---|---|---|
e |
chartType | The type of the new chart |
Returns
Type | Description |
---|---|
Excel |
AddAreaChart(eAreaChartType)
Adds a new area chart to the chart
Declaration
public ExcelAreaChart AddAreaChart(eAreaChartType chartType)
Parameters
Type | Name | Description |
---|---|---|
e |
chartType | The type of the new chart |
Returns
Type | Description |
---|---|
Excel |
The chart |
AddBarChart(eBarChartType)
Adds a new bar chart to the chart
Declaration
public ExcelBarChart AddBarChart(eBarChartType chartType)
Parameters
Type | Name | Description |
---|---|---|
e |
chartType | The type of the new chart |
Returns
Type | Description |
---|---|
Excel |
The chart |
AddDoughnutChart(eDoughnutChartType)
Adds a new doughnut chart to the chart
Declaration
public ExcelDoughnutChart AddDoughnutChart(eDoughnutChartType chartType)
Parameters
Type | Name | Description |
---|---|---|
e |
chartType | The type of the new chart |
Returns
Type | Description |
---|---|
Excel |
The chart |
AddLineChart(eLineChartType)
Adds a new line chart to the chart
Declaration
public ExcelLineChart AddLineChart(eLineChartType chartType)
Parameters
Type | Name | Description |
---|---|---|
e |
chartType | The type of the new chart |
Returns
Type | Description |
---|---|
Excel |
The chart |
AddOfPieChart(eOfPieChartType)
Adds a new column of pie- or bar of pie chart to the chart
Declaration
public ExcelOfPieChart AddOfPieChart(eOfPieChartType chartType)
Parameters
Type | Name | Description |
---|---|---|
e |
chartType | The type of the new chart |
Returns
Type | Description |
---|---|
Excel |
The chart |
AddPieChart(ePieChartType)
Adds a new pie chart to the chart
Declaration
public ExcelPieChart AddPieChart(ePieChartType chartType)
Parameters
Type | Name | Description |
---|---|---|
e |
chartType | The type of the new chart |
Returns
Type | Description |
---|---|
Excel |
The chart |
AddRadarChart(eRadarChartType)
Adds a new radar chart to the chart
Declaration
public ExcelRadarChart AddRadarChart(eRadarChartType chartType)
Parameters
Type | Name | Description |
---|---|---|
e |
chartType | The type of the new chart |
Returns
Type | Description |
---|---|
Excel |
The chart |
AddScatterChart(eScatterChartType)
Adds a new scatter chart to the chart
Declaration
public ExcelScatterChart AddScatterChart(eScatterChartType chartType)
Parameters
Type | Name | Description |
---|---|---|
e |
chartType | The type of the new chart |
Returns
Type | Description |
---|---|
Excel |
The chart |
Explicit Interface Implementations
IEnumerable<ExcelChart>.GetEnumerator()
Declaration
IEnumerator<ExcelChart> IEnumerable<ExcelChart>.GetEnumerator()
Returns
Type | Description |
---|---|
System. |
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System. |