menu

WinForms

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

    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
    Inherited Members
    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 ChartPointIndexer : 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

    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
    [Obsolete("Use RemoveAt method.")]
    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.

    Explicit Interface Implementations

    ICollection.CopyTo(Array, Int32)

    Copies the elements of the System.Collections.ICollection to an System.Array, starting at a particular System.Array index.

    Declaration
    void ICollection.CopyTo(Array array, int index)
    Parameters
    Type Name Description
    System.Array array

    The one-dimensional System.Array that is the destination of the elements copied from System.Collections.ICollection. The System.Array must have zero-based indexing.

    System.Int32 index

    The zero-based index in array at which copying begins.

    Exceptions
    Type Condition
    System.ArgumentNullException

    array is null.

    System.ArgumentException

    The type of the source System.Collections.ICollection cannot be cast automatically to the type of the destination array.

    System.ArgumentOutOfRangeException

    index is less than zero.

    System.ArgumentException

    array is multidimensional.-or- index is equal to or greater than the length of array.-or- The number of elements in the source System.Collections.ICollection is greater than the available space from index to the end of the destination array.

    ICollection.IsSynchronized

    Gets a value indicating whether access to the System.Collections.ICollection is synchronized (thread safe).

    Declaration
    bool ICollection.IsSynchronized { get; }
    Returns
    Type
    System.Boolean

    ICollection.SyncRoot

    Gets an object that can be used to synchronize access to the System.Collections.ICollection.

    Declaration
    object ICollection.SyncRoot { get; }
    Returns
    Type
    System.Object

    IList.Add(Object)

    Adds an item to the System.Collections.IList.

    Declaration
    int IList.Add(object value)
    Parameters
    Type Name Description
    System.Object value

    The System.Object to add to the System.Collections.IList.

    Returns
    Type Description
    System.Int32

    The position into which the new element was inserted.

    Exceptions
    Type Condition
    System.NotSupportedException

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

    IList.Contains(Object)

    Determines whether the System.Collections.IList contains a specific value.

    Declaration
    bool IList.Contains(object value)
    Parameters
    Type Name Description
    System.Object value

    The System.Object to locate in the System.Collections.IList.

    Returns
    Type Description
    System.Boolean

    true if the System.Object is found in the System.Collections.IList; otherwise, false.

    IList.get_Item(Int32)

    Declaration
    object IList.get_Item(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type
    System.Object

    IList.IndexOf(Object)

    Determines the index of a specific item in the System.Collections.IList.

    Declaration
    int IList.IndexOf(object value)
    Parameters
    Type Name Description
    System.Object value

    The System.Object to locate in the System.Collections.IList.

    Returns
    Type Description
    System.Int32

    The index of value if found in the list; otherwise, -1.

    IList.Insert(Int32, Object)

    Inserts an item to the System.Collections.IList at the specified index.

    Declaration
    void IList.Insert(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value

    The System.Object to insert into the System.Collections.IList.

    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.

    System.NullReferenceException

    value is null reference in the System.Collections.IList.

    IList.IsFixedSize

    Gets a value indicating whether the System.Collections.IList has a fixed size.

    Declaration
    bool IList.IsFixedSize { get; }
    Returns
    Type
    System.Boolean

    IList.Item[Int32]

    Gets or sets the System.Object at the specified index.

    Declaration
    object IList.this[] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type
    System.Object

    IList.Remove(Object)

    Removes the first occurrence of a specific object from the System.Collections.IList.

    Declaration
    void IList.Remove(object value)
    Parameters
    Type Name Description
    System.Object value

    The System.Object to remove from the System.Collections.IList.

    Exceptions
    Type Condition
    System.NotSupportedException

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

    IList.set_Item(Int32, Object)

    Declaration
    void IList.set_Item(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value

    Implements

    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable

    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