[]
Represents a collection of all ISeries objects in a chart.
Use this interface to access, add, and create chart series returned by SeriesCollection.
public interface ISeriesCollection : IEnumerable<ISeries>, IEnumerable
Public Interface ISeriesCollection
Inherits IEnumerable(Of ISeries), IEnumerable
worksheet.Range["A1:B3"].Value = new object[,] {
{"Month", "Sales"},
{"Jan", 10},
{"Feb", 20}
};
IShape shape = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200);
ISeriesCollection seriesCollection = shape.Chart.SeriesCollection;
seriesCollection.Add(worksheet.Range["A1:B3"]);
| Name | Description |
|---|---|
| Count | Gets the number of ISeries objects in the collection. Use this property to determine how many data series are currently contained in the parent chart. |
| this[int] | Gets the series at the specified index in the collection. Use this property to access an individual chart series after series have been added to the chart. |
| this[string] | Gets the series with the specified name from this collection. Use this indexer to retrieve a chart series by its name after series names have been assigned or inferred from the source data. |
| Parent | Gets the parent chart that contains this series collection. Use this property to navigate from an ISeriesCollection object back to its owning IChart. |
| Name | Description |
|---|---|
| Add(IRange) | Adds one or more new series to the ISeriesCollection collection. This overload automatically determines whether each series is created from rows or columns in the source range. |
| Add(IRange, RowCol) | Adds one or more new series to the ISeriesCollection collection.
Use |
| Add(IRange, RowCol, bool, bool) | Adds one or more series to this ISeriesCollection from the specified range.
Use |
| Extend(IRange, RowCol, bool) | Adds data points from the specified range to the existing series in this collection.
Use this method to extend a chart with additional source data after the initial
series have already been added. The
The
Set |
| NewSeries() | Creates a new series in this collection. Use the returned ISeries object to configure the newly created chart series. |