Class SeriesCollection<DS>
Represents a collection of data series in a chart.
Inherited Members
Namespace: DRIT.Spreadsheet.Chart
Assembly: DRIT.Spreadsheet.dll
Syntax
public class SeriesCollection<DS> : IEnumerable<DS>, IEnumerable where DS : DataSeries
Type Parameters
| Name | Description |
|---|---|
| DS | The type of data series, must inherit from DataSeries. |
Properties
Count
Gets the number of data series in the collection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets the data series at the specified index.
Declaration
public DS this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index. |
Property Value
| Type | Description |
|---|---|
| DS | The data series at the specified index. |
Methods
Add(string, string, string)
Adds a new data series to the collection.
Declaration
public void Add(string seriesName, string seriesCategories, string seriesValues)
Parameters
| Type | Name | Description |
|---|---|---|
| string | seriesName | The name of the series. |
| string | seriesCategories | The category values formula. |
| string | seriesValues | The values formula. |
ForEach(Action<DS>)
Executes the specified action on each data series in the collection.
Declaration
public void ForEach(Action<DS> action)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<DS> | action | The action to execute. |
GetEnumerator()
Returns an enumerator that iterates through the data series.
Declaration
public IEnumerator<DS> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<DS> | An enumerator for the data series. |