ChartSeriesCollection<T> Class
Represents a collection of series of specific type which derives from ChartSeries type.
public abstract class ChartSeriesCollection<T> : ChartSeriesCollection, IList, ICollection, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
Public MustInherit Class ChartSeriesCollection(Of T As ChartSeries)
Inherits ChartSeriesCollection
Implements IList, ICollection, IList(Of T), ICollection(Of T), IEnumerable(Of T), IEnumerable
Type Parameters
T
A ChartSeries derived type.
- Inheritance:
- System.ObjectChartSeriesCollection<T>
- Derived
Implements
Properties
Count
Gets the number of elements contained in the ChartSeriesCollection<T>.
Property Value
- System.Int32
Overrides
Item[Int32]
Gets the T
that is stored at the zero-based index of the ChartSeriesCollection<T>.
Parameters
index
- System.Int32
The zero-based index of the ChartSeriesCollection<T> from which to get the T
.
Property Value
- T
The T
that is stored at the zero-based index of the ChartSeriesCollection<T>.
Methods
Add()
Adds a new empty series to the chart.
Returns
- T
A new empty series added to the chart.
Add(String, IEnumerable)
Adds a new series with specified name and values to the chart.
public T Add(string name, IEnumerable values)
Public Function Add(name As String, values As IEnumerable) As T
Parameters
name
- System.String
The series name.
values
- System.Collections.IEnumerable
The series values.
Returns
- T
A new series with specified name and values added to the chart.
Add(String, Object[])
Adds a new series with specified name and values to the chart.
public T Add(string name, params object[] values)
Public Function Add(name As String, ParamArray values As Object()) As T
Parameters
name
- System.String
The series name.
values
- System.Object[]
The series values.
Returns
- T
A new series with specified name and values added to the chart.
Add(String, String)
Adds a new series with specified name and values reference to the chart.
public T Add(string name, string valuesReference)
Public Function Add(name As String, valuesReference As String) As T
Parameters
name
- System.String
The series name.
valuesReference
- System.String
The series values reference.
Returns
- T
A new series with specified name and values reference added to the chart.
Clear()
Removes all elements from the ChartSeriesCollection<T>.
Overrides
GetEnumerator()
Returns an enumerator that iterates through the ChartSeriesCollection<T>
Returns
- System.Collections.Generic.IEnumerator<T>
An enumerator for the ChartSeriesCollection<T>.
Move(Int32, Int32)
Moves the series at the specified index to a new location in the collection.
public override void Move(int oldIndex, int newIndex)
Public Overrides Sub Move(oldIndex As Integer, newIndex As Integer)
Parameters
oldIndex
- System.Int32
The zero-based index specifying the location of the item to be moved.
newIndex
- System.Int32
The zero-based index specifying the new location of the item.
Overrides
RemoveAt(Int32)
Removes the element at the specified index of the ChartSeriesCollection<T>.
Parameters
index
- System.Int32
The zero-based index of the element to remove.