Class ChartsCollection
- Namespace
- Spire.Xls.Collections
- Assembly
- Spire.XLS.dll
public class ChartsCollection : XlsChartsCollection, IList<IChart>, ICollection<IChart>, IEnumerable<IChart>, ICloneParent, ICharts, IEnumerable, IExcelApplication
- Inheritance
-
ChartsCollection
- Implements
- Inherited Members
Properties
this[int]
Gets a chart object by item index.
public Chart this[int index] { get; }
Parameters
index
int
Property Value
this[string]
Get a chart object by name.
public Chart this[string name] { get; }
Parameters
name
string
Property Value
Methods
Add()
Adds a new chart.
public ChartSheet Add()
Returns
- ChartSheet
Created chart object.
Add(ChartSheet)
Adds chart to the collection.
public ChartSheet Add(ChartSheet chart)
Parameters
chart
ChartSheetChart to add.
Returns
- ChartSheet
Added chart object.
Add(string)
Add a new chart with name.
public ChartSheet Add(string name)
Parameters
name
stringchart name.
Returns
- ChartSheet
Created chart object.
Remove(string)
Removes chart object from the collection.
public ChartSheet Remove(string name)
Parameters
name
stringName of the chart to remove.