Skip to main content

DataSetCollection

Namespace: Wisej.Web.Ext.ChartJS3

Assembly: Wisej.Web.Ext.ChartJS3

Collection of DataSet objects. Represents the sets of data to plot.

public class DataSetCollection : IList, ICollection, IEnumerable, IList<DataSet>, ICollection<DataSet>, IEnumerable<DataSet>

Properties

Instance memberCount

Int32: Returns the number of DataSet objects in the collection.

Instance memberItem(index)

DataSet: Returns or sets the DataSet at the specified position.

Instance memberItem(label)

DataSet: Returns or sets the DataSet identified by the label name.

Methods

Instance memberAdd(dataSet)

Adds a new DataSet to the collection.

ParameterTypeDescription
dataSetDataSetThe DataSet to add to the collection.

Instance memberAdd(name)

Creates and adds a new DataSet to the collection.

ParameterTypeDescription
nameStringThe name of the new DataSet.

Returns: DataSet.

Instance memberClear()

Removes all data sets.

Instance memberContains(dataSet)

Checks if the specified DataSet exists in the collection.

ParameterTypeDescription
dataSetDataSetThe DataSet to look for.

Returns: Boolean.

Instance memberCopyTo(array, arrayIndex)

Copies all data sets to the specified array.

ParameterTypeDescription
arrayDataSet[]The destination array.
arrayIndexInt32The index at which to begin the copy.

Instance memberGetEnumerator()

Returns an enumerator that iterates all the DataSet objects in the collection.

Returns: IEnumerator<DataSet>.

Instance memberIndexOf(dataSet)

Returns the index of the specified DataSet in the collection.

ParameterTypeDescription
dataSetDataSet

Returns: Int32.

Instance memberInsert(index, dataSet)

Returns the index of the DataSet in the collection.

ParameterTypeDescription
indexInt32
dataSetDataSet

Instance memberRemove(dataSet)

Removes the DataSet from the collection and updates the chart.

ParameterTypeDescription
dataSetDataSetThe DataSet to remove.

Returns: Boolean.

Instance memberRemoveAt(index)

Removes the DataSet at the specified index from the collection and updates the chart.

ParameterTypeDescription
indexInt32The index of the DataSet to remove.