GemBox.Spreadsheet
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    ChartSeriesCollection<T> Class

    Namespace:
    GemBox.Spreadsheet.Charts
    Assembly:
    GemBox.Spreadsheet.dll

    Represents a collection of series of specific type which derives from ChartSeries type.

    • C#
    • VB.NET
    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.Object
    ChartSeriesCollection
    ChartSeriesCollection<T>
    Derived
    LineChartSeriesCollection
    ScatterChartSeriesCollection
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.Generic.IList<T>
    System.Collections.Generic.ICollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable

    Properties

    Count

    Gets the number of elements contained in the ChartSeriesCollection<T>.

    • C#
    • VB.NET
    public override int Count { get; }
    Public Overrides ReadOnly Property Count As Integer
    Property Value
    System.Int32
    Overrides
    ChartSeriesCollection.Count

    Item[Int32]

    Gets the T that is stored at the zero-based index of the ChartSeriesCollection<T>.

    • C#
    • VB.NET
    public T this[int index] { get; }
    Public ReadOnly Property Item(index As Integer) As 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.

    • C#
    • VB.NET
    public T Add()
    Public Function Add As T
    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.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    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>.

    • C#
    • VB.NET
    public override void Clear()
    Public Overrides Sub Clear
    Overrides
    ChartSeriesCollection.Clear()

    GetEnumerator()

    Returns an enumerator that iterates through the ChartSeriesCollection<T>

    • C#
    • VB.NET
    public IEnumerator<T> GetEnumerator()
    Public Function GetEnumerator As IEnumerator(Of 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.

    • C#
    • VB.NET
    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
    ChartSeriesCollection.Move(Int32, Int32)

    RemoveAt(Int32)

    Removes the element at the specified index of the ChartSeriesCollection<T>.

    • C#
    • VB.NET
    public override void RemoveAt(int index)
    Public Overrides Sub RemoveAt(index As Integer)
    Parameters
    index
    System.Int32

    The zero-based index of the element to remove.

    Overrides
    ChartSeriesCollection.RemoveAt(Int32)

    Implements

    System.Collections.IList
    System.Collections.ICollection
    System.Collections.Generic.IList<T>
    System.Collections.Generic.ICollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.