Class SeriesCollection<DS>
Represents the series collection used by the presentation model.
Inherited Members
Namespace: DRIT.Presentation.Chart.Office
Assembly: DRIT.Presentation.dll
Syntax
public class SeriesCollection<DS> : IEnumerable<DS>, IEnumerable where DS : DataSeries
Type Parameters
| Name | Description |
|---|---|
| DS |
Properties
Count
Gets the number of items in this collection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets or sets the value associated with this object.
Declaration
public DS this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type | Description |
|---|---|
| DS |
Methods
Add(string, IEnumerable<double>)
Adds the value to this series collection.
Declaration
public DS Add(string seriesName, IEnumerable<double> seriesValues)
Parameters
| Type | Name | Description |
|---|---|---|
| string | seriesName | The display name assigned to the series. |
| IEnumerable<double> | seriesValues |
Returns
| Type | Description |
|---|---|
| DS | The newly added value. |
Add(string, IEnumerable<string>, IEnumerable<double>)
Adds the value to this series collection.
Declaration
public DS Add(string seriesName, IEnumerable<string> seriesCategories, IEnumerable<double> seriesValues)
Parameters
| Type | Name | Description |
|---|---|---|
| string | seriesName | The display name assigned to the series. |
| IEnumerable<string> | seriesCategories | |
| IEnumerable<double> | seriesValues |
Returns
| Type | Description |
|---|---|
| DS | The newly added value. |
Add(string, string, string)
Adds the value to this series collection.
Declaration
public void Add(string seriesName, string seriesCategories, string seriesValues)
Parameters
| Type | Name | Description |
|---|---|---|
| string | seriesName | The display name assigned to the series. |
| string | seriesCategories | The category labels assigned to the series. |
| string | seriesValues | The numeric values assigned to the series. |
ForEach(Action<DS>)
Invokes the supplied action for each item in this collection.
Declaration
public void ForEach(Action<DS> action)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<DS> | action |
GetEnumerator()
Returns an enumerator that iterates through this collection.
Declaration
public IEnumerator<DS> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<DS> | An enumerator that iterates through this collection. |