DataSetCollection
Namespace: Wisej.Web.Ext.ChartJS
Assembly: Wisej.Web.Ext.ChartJS
Collection of DataSet objects. Represents the sets of data to plot.
- C#
- VB.NET
public class DataSetCollection : IList, ICollection, IEnumerable, IList<DataSet>, ICollection<DataSet>, IEnumerable<DataSet>
Public Class DataSetCollection
Inherits IList
Implements ICollection, IEnumerable, IList(Of DataSet), ICollection(Of DataSet), IEnumerable(Of DataSet)
Properties
Count
Int32: Returns the number of DataSet objects in the collection.
Item(index)
DataSet: Returns or sets the DataSet at the specified position.
Item(label)
DataSet: Returns or sets the DataSet identified by the label name.
Methods
Add(dataSet)
Adds a new DataSet to the collection.
| Parameter | Type | Description |
|---|---|---|
| dataSet | DataSet | The DataSet to add to the collection. |
Add(name)
Creates and adds a new DataSet to the collection.
| Parameter | Type | Description |
|---|---|---|
| name | String | The name of the new DataSet. |
Returns: DataSet.
Clear()
Removes all data sets.
Contains(dataSet)
Checks if the specified DataSet exists in the collection.
| Parameter | Type | Description |
|---|---|---|
| dataSet | DataSet | The DataSet to look for. |
Returns: Boolean.
CopyTo(array, arrayIndex)
Copies all data sets to the specified array.
| Parameter | Type | Description |
|---|---|---|
| array | DataSet[] | The destination array. |
| arrayIndex | Int32 | The index at which to begin the copy. |
GetEnumerator()
Returns an enumerator that iterates all the DataSet objects in the collection.
Returns: IEnumerator<DataSet>.
IndexOf(dataSet)
Returns the index of the specified DataSet in the collection.
| Parameter | Type | Description |
|---|---|---|
| dataSet | DataSet |
Returns: Int32.
Insert(index, dataSet)
Returns the index of the DataSet in the collection.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | |
| dataSet | DataSet |
Remove(dataSet)
Removes the DataSet from the collection and updates the chart.
| Parameter | Type | Description |
|---|---|---|
| dataSet | DataSet | The DataSet to remove. |
Returns: Boolean.
RemoveAt(index)
Removes the DataSet at the specified index from the collection and updates the chart.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | The index of the DataSet to remove. |