.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

ChartCollection Members

A collection of Chart objects in a worksheet.

Properties

Name Description
Count Gets the number of elements contained in the ICollection. Inherited from ICollection.
IsSynchronized Gets a value indicating whether access to the ICollection is synchronized (thread safe). Inherited from ICollection.
SyncRoot Gets an object that can be used to synchronize access to the ICollection. Inherited from ICollection.

Methods

Name Description
Add(ChartType) Creates a chart of the specified type and adds it to the collection.
Add(ChartType, CellRange) Creates a chart of the specified type with data from the specified range and adds the chart to the collection.
Clear() Removes all objects from the ChartCollection instance.
Contains(Chart) Determines whether the collection contains the specified item.
CopyTo(Array, Int32) Copies the elements of the ICollection to an Array, starting at a particular Array index. Inherited from ICollection.
GetChartById(Int32) Gets a chart by its ID value.
GetCharts(String) Get chart(s) by name.
GetEnumerator() Returns an enumerator that iterates through the collection. Inherited from IEnumerable<T>.
IndexOf(Chart) Returns the index of the specified chart in the collection.
Remove(Chart) Removes the specified chart from a collection.
RemoveAt(Int32) Removes the element at the specified index of the ChartCollection instance.
See Also