menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartSeriesModel - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartSeriesModel

    This is the core data container implementation for a chart. This is a very simple model that stores data in the list inherited from the CollectionBase. It relies on the events raised by the CollectionBase base class to inform users of the changes that had occurred to the series.

    Inheritance
    System.Object
    System.Collections.CollectionBase
    ChartSeriesModel
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    IEditableChartSeriesModel
    IChartSeriesModel
    IChartEditableCategory
    IChartSeriesCategory
    Inherited Members
    System.Collections.CollectionBase.Capacity
    System.Collections.CollectionBase.Clear()
    System.Collections.CollectionBase.Count
    System.Collections.CollectionBase.GetEnumerator()
    System.Collections.CollectionBase.InnerList
    System.Collections.CollectionBase.List
    System.Collections.CollectionBase.OnValidate(System.Object)
    System.Collections.CollectionBase.RemoveAt(System.Int32)
    System.Collections.CollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
    System.Collections.CollectionBase.System.Collections.ICollection.IsSynchronized
    System.Collections.CollectionBase.System.Collections.ICollection.SyncRoot
    System.Collections.CollectionBase.System.Collections.IList.Add(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Contains(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.get_Item(System.Int32)
    System.Collections.CollectionBase.System.Collections.IList.IndexOf(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Insert(System.Int32, System.Object)
    System.Collections.CollectionBase.System.Collections.IList.IsFixedSize
    System.Collections.CollectionBase.System.Collections.IList.IsReadOnly
    System.Collections.CollectionBase.System.Collections.IList.Item[System.Int32]
    System.Collections.CollectionBase.System.Collections.IList.Remove(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.set_Item(System.Int32, System.Object)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms.Chart
    Assembly: Syncfusion.Chart.Base.dll
    Syntax
    public class ChartSeriesModel : CollectionBase, IList, ICollection, IEnumerable, IEditableChartSeriesModel, IChartSeriesModel, IChartEditableCategory, IChartSeriesCategory

    Constructors

    ChartSeriesModel()

    Initializes a new instance of the ChartSeriesModel class.

    Declaration
    public ChartSeriesModel()

    Methods

    Add(Double, Double[])

    Adds data to the end of the data representation.

    Declaration
    public void Add(double x, double[] yValues)
    Parameters
    Type Name Description
    System.Double x
    System.Double[] yValues

    Add(Double, Double[], Boolean)

    Adds data to the end of the data representation.

    Declaration
    public void Add(double x, double[] yValues, bool isEmpty)
    Parameters
    Type Name Description
    System.Double x

    The x.

    System.Double[] yValues

    The y values.

    System.Boolean isEmpty

    if set to true is empty.

    Add(Double, Double[], Boolean, String)

    Adds data to the end of the data representation.

    Declaration
    public void Add(double x, double[] yValues, bool isEmpty, string category)
    Parameters
    Type Name Description
    System.Double x

    The x.

    System.Double[] yValues

    The y values.

    System.Boolean isEmpty

    if set to true is empty.

    System.String category

    The category values.

    Add(Double, Double[], String)

    Adds data to the end of the data representation.

    Declaration
    public void Add(double x, double[] yValues, string category)
    Parameters
    Type Name Description
    System.Double x
    System.Double[] yValues
    System.String category

    Add(String)

    Adds data to the end of the data representation.

    Declaration
    public void Add(string category)
    Parameters
    Type Name Description
    System.String category

    GetCategory(Int32)

    Please refer to .

    Declaration
    public string GetCategory(int xIndex)
    Parameters
    Type Name Description
    System.Int32 xIndex
    Returns
    Type
    System.String

    GetEmpty(Int32)

    Please refer to GetEmpty(Int32).

    Declaration
    public bool GetEmpty(int xIndex)
    Parameters
    Type Name Description
    System.Int32 xIndex
    Returns
    Type
    System.Boolean

    GetX(Int32)

    Please refer to GetX(Int32).

    Declaration
    public double GetX(int xIndex)
    Parameters
    Type Name Description
    System.Int32 xIndex
    Returns
    Type
    System.Double

    GetY(Int32)

    Please refer to GetY(Int32).

    Declaration
    public double[] GetY(int xIndex)
    Parameters
    Type Name Description
    System.Int32 xIndex
    Returns
    Type
    System.Double[]

    Insert(Int32, Double, Double[])

    Please refer to Insert(Int32, Double, Double[]).

    Declaration
    public void Insert(int xIndex, double x, double[] yValues)
    Parameters
    Type Name Description
    System.Int32 xIndex
    System.Double x
    System.Double[] yValues

    Insert(Int32, Double, Double[], String)

    Please refer to Insert(Int32, Double, Double[]).

    Declaration
    public void Insert(int xIndex, double x, double[] yValues, string category)
    Parameters
    Type Name Description
    System.Int32 xIndex
    System.Double x
    System.Double[] yValues
    System.String category

    OnClear()

    Declaration
    protected override void OnClear()
    Overrides
    System.Collections.CollectionBase.OnClear()

    OnClearComplete()

    Declaration
    protected override void OnClearComplete()
    Overrides
    System.Collections.CollectionBase.OnClearComplete()

    OnInsert(Int32, Object)

    Declaration
    protected override void OnInsert(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value
    Overrides
    System.Collections.CollectionBase.OnInsert(System.Int32, System.Object)

    OnInsertComplete(Int32, Object)

    Declaration
    protected override void OnInsertComplete(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value
    Overrides
    System.Collections.CollectionBase.OnInsertComplete(System.Int32, System.Object)

    OnRemove(Int32, Object)

    Declaration
    protected override void OnRemove(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value
    Overrides
    System.Collections.CollectionBase.OnRemove(System.Int32, System.Object)

    OnRemoveComplete(Int32, Object)

    Declaration
    protected override void OnRemoveComplete(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value
    Overrides
    System.Collections.CollectionBase.OnRemoveComplete(System.Int32, System.Object)

    OnSet(Int32, Object, Object)

    Declaration
    protected override void OnSet(int index, object value, object newValue)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value
    System.Object newValue
    Overrides
    System.Collections.CollectionBase.OnSet(System.Int32, System.Object, System.Object)

    OnSetComplete(Int32, Object, Object)

    Declaration
    protected override void OnSetComplete(int index, object newValue, object oldValue)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object newValue
    System.Object oldValue
    Overrides
    System.Collections.CollectionBase.OnSetComplete(System.Int32, System.Object, System.Object)

    RaiseChanged(ListChangedEventArgs)

    Raises the Changed event.

    Declaration
    protected void RaiseChanged(ListChangedEventArgs args)
    Parameters
    Type Name Description
    System.ComponentModel.ListChangedEventArgs args

    The System.ComponentModel.ListChangedEventArgs instance containing the event data.

    Remove(Int32)

    Please refer to Remove(Int32).

    Declaration
    public void Remove(int xIndex)
    Parameters
    Type Name Description
    System.Int32 xIndex

    SetCategory(Int32, String)

    Please refer to .

    Declaration
    public void SetCategory(int xIndex, string category)
    Parameters
    Type Name Description
    System.Int32 xIndex
    System.String category

    SetEmpty(Int32, Boolean)

    Please refer to SetEmpty(Int32, Boolean).

    Declaration
    public void SetEmpty(int xIndex, bool isEmpty)
    Parameters
    Type Name Description
    System.Int32 xIndex
    System.Boolean isEmpty

    SetX(Int32, Double)

    Please refer to SetX(Int32, Double).

    Declaration
    public void SetX(int xIndex, double value)
    Parameters
    Type Name Description
    System.Int32 xIndex
    System.Double value

    SetY(Int32, Double[])

    Please refer to SetY(Int32, Double[]).

    Declaration
    public void SetY(int xIndex, double[] yValues)
    Parameters
    Type Name Description
    System.Int32 xIndex
    System.Double[] yValues

    Events

    Changed

    Please refer to Changed.

    Declaration
    public event ListChangedEventHandler Changed
    Event Type
    Type
    System.ComponentModel.ListChangedEventHandler

    Implements

    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    IEditableChartSeriesModel
    IChartSeriesModel
    IChartEditableCategory
    IChartSeriesCategory

    Extension Methods

    EnumerableExtensions.GetElementType(IEnumerable)
    EnumerableExtensions.GetItemPropertyInfo(IEnumerable)
    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    FunctionalExtensions.MoveTo(IList, Int32, Int32)
    QueryableExtensions.OfQueryable(IEnumerable)
    QueryableExtensions.OfQueryable(IEnumerable, Type)
    QueryableExtensions.GroupByMany<TElement>(IEnumerable, Type, List<Func<TElement, Object>>)
    QueryableExtensions.GroupByMany(IEnumerable, Type, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Dictionary<String, IComparer<Object>>, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Func<String, Expression>, String[])
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved