Table of Contents

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

Chart

this[string]

Get a chart object by name.

public Chart this[string name] { get; }

Parameters

name string

Property Value

Chart

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 ChartSheet

Chart to add.

Returns

ChartSheet

Added chart object.

Add(string)

Add a new chart with name.

public ChartSheet Add(string name)

Parameters

name string

chart name.

Returns

ChartSheet

Created chart object.

Remove(string)

Removes chart object from the collection.

public ChartSheet Remove(string name)

Parameters

name string

Name of the chart to remove.

Returns

ChartSheet