alexa
menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class ChartPointIndexer

    Represents the wrapper for IChartSeriesModel that implements the System.Collections.IList.

    Inheritance
    System.Object
    ChartPointIndexer
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Namespace: Syncfusion.Windows.Forms.Chart
    Assembly: Syncfusion.Chart.Base.dll
    Syntax
    public class ChartPointIndexer : Object, IList, ICollection, IEnumerable

    Constructors

    ChartPointIndexer(ChartSeries)

    Initializes a new instance of the ChartPointIndexer class.

    Declaration
    public ChartPointIndexer(ChartSeries series)
    Parameters
    Type Name Description
    ChartSeries series

    The series.

    ChartPointIndexer(IChartSeriesModel, IChartSeriesCategory)

    Initializes a new instance of the ChartPointIndexer class.

    Declaration
    public ChartPointIndexer(IChartSeriesModel model, IChartSeriesCategory categoryModel)
    Parameters
    Type Name Description
    IChartSeriesModel model

    The model.

    IChartSeriesCategory categoryModel

    The chart series category model that provides category information.

    Properties

    Count

    Gets count of points in the series.

    Declaration
    public int Count { get; }
    Property Value
    Type
    System.Int32

    IsReadOnly

    Gets a value indicating whether the System.Collections.IList is read-only.

    Declaration
    public bool IsReadOnly { get; }
    Property Value
    Type
    System.Boolean

    Item[Int32]

    Gets the ChartPoint with the specified x index.

    Declaration
    public ChartPoint this[int xIndex] { get; }
    Parameters
    Type Name Description
    System.Int32 xIndex
    Property Value
    Type
    ChartPoint

    Methods

    Add(ChartPoint)

    Adds a point to the series

    Declaration
    public int Add(ChartPoint cp)
    Parameters
    Type Name Description
    ChartPoint cp

    Instance of ChartPoint

    Returns
    Type
    System.Int32

    Add(DateTime, Double)

    Adds a point to the series

    Declaration
    public int Add(DateTime date, double y)
    Parameters
    Type Name Description
    System.DateTime date

    X date of point

    System.Double y

    Y value of point

    Returns
    Type
    System.Int32

    Add(DateTime, Double[])

    Adds a point to the series

    Declaration
    public int Add(DateTime date, params double[] yValues)
    Parameters
    Type Name Description
    System.DateTime date

    X date of point

    System.Double[] yValues

    Y values of point

    Returns
    Type
    System.Int32

    Add(Double, DateTime)

    Adds a point to the series

    Declaration
    public int Add(double x, DateTime date)
    Parameters
    Type Name Description
    System.Double x

    X value of point

    System.DateTime date

    Y date of point

    Returns
    Type
    System.Int32

    Add(Double, DateTime[])

    Adds a point to the series

    Declaration
    public int Add(double x, params DateTime[] dates)
    Parameters
    Type Name Description
    System.Double x

    X value of point

    System.DateTime[] dates

    Y dates of point

    Returns
    Type
    System.Int32

    Add(Double, Double)

    Adds a point to the series

    Declaration
    public int Add(double x, double y)
    Parameters
    Type Name Description
    System.Double x

    X value of point

    System.Double y

    Y value of point

    Returns
    Type
    System.Int32

    Add(Double, Double[])

    Adds a point to the series

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

    X value of point

    System.Double[] yValues

    Y values of point

    Returns
    Type
    System.Int32

    Add(String, Double)

    Adds a point to the series

    Declaration
    public int Add(string x, double y)
    Parameters
    Type Name Description
    System.String x

    X value of point

    System.Double y

    Y value of point

    Returns
    Type
    System.Int32

    Add(String, Double[])

    Adds a point to the series

    Declaration
    public int Add(string x, params double[] yValues)
    Parameters
    Type Name Description
    System.String x

    X value of point

    System.Double[] yValues

    Y values of point

    Returns
    Type
    System.Int32

    Clear()

    Removes all points from the series.

    Declaration
    public void Clear()

    GetEnumerator()

    Returns an enumerator that iterates through a collection.

    Declaration
    public IEnumerator GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    An IEnumerator object that can be used to iterate through the collection.

    IndexOf(ChartPoint)

    Returns index of a point.

    Declaration
    public int IndexOf(ChartPoint cp)
    Parameters
    Type Name Description
    ChartPoint cp

    Instance of ChartPoint

    Returns
    Type Description
    System.Int32

    The specified index of point.

    Insert(Int32, ChartPoint)

    Inserts a point to the series at the specified index.

    Declaration
    public void Insert(int xIndex, ChartPoint cp)
    Parameters
    Type Name Description
    System.Int32 xIndex

    Index of a point

    ChartPoint cp

    Instance of ChartPoint

    Remove(ChartPoint)

    Removes the specified ChartPoint.

    Declaration
    public void Remove(ChartPoint cp)
    Parameters
    Type Name Description
    ChartPoint cp

    The cp.

    Remove(Int32)

    Removes a point from the series at the specified index.

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

    Index of a point

    RemoveAt(Int32)

    Removes the System.Collections.IList item at the specified index.

    Declaration
    public void RemoveAt(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index of the item to remove.

    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    index is not a valid index in the System.Collections.IList.

    System.NotSupportedException

    The System.Collections.IList is read-only.-or- The System.Collections.IList has a fixed size.

    Implements

    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved