menu

WinForms

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

    Show / Hide Table of Contents

    Class ChartBaseList

    Provides the base class for a strongly typed collection. This class has Changed event.

    Inheritance
    System.Object
    ChartBaseList
    ChartAreaCursorCollection
    ChartAxisCollection
    ChartCustomPointCollection
    ChartLegendCollection
    ChartLegendItemsCollection
    ChartLegendsList
    ChartTitlesList
    ChartToolBarItemCollection
    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 ChartBaseList : IList, ICollection, IEnumerable

    Constructors

    ChartBaseList()

    Initializes a new instance of the ChartBaseList class that is empty and has the default initial capacity.

    Declaration
    public ChartBaseList()

    ChartBaseList(Int32)

    Initializes a new instance of the ChartBaseList class that is empty and has the specified initial capacity.

    Declaration
    public ChartBaseList(int capacity)
    Parameters
    Type Name Description
    System.Int32 capacity

    The number of elements that the new list can initially store.

    Properties

    Count

    Gets the number of elements contained in the ChartBaseList instance. This property cannot be overridden.

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

    IsFixedSize

    Gets a value indicating whether the ChartBaseList has a fixed size.

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

    IsReadOnly

    Gets a value indicating whether the ChartBaseList is read-only.

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

    IsSynchronized

    Gets a value indicating whether access to the ChartBaseList is synchronized (thread safe).

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

    SyncRoot

    Gets an object that can be used to synchronize access to the ChartBaseList.

    Declaration
    public virtual object SyncRoot { get; }
    Property Value
    Type
    System.Object

    Methods

    Clear()

    Removes all items from the ChartBaseList.

    Declaration
    public void Clear()

    CopyTo(Array, Int32)

    Copies the entire ChartBaseList to a compatible one-dimensional Array, starting at the specified index of the target array.

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

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

    System.Int32 index

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

    GetEnumerator()

    Returns an enumerator for the entire ChartBaseList.

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

    An IEnumerator for the entire ChartBaseList.

    RemoveAt(Int32)

    Removes the ChartBaseList 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.

    Sort(IComparer)

    Sorts the elements in the entire ChartBaseList using the specified comparer

    Declaration
    public void Sort(IComparer comparer)
    Parameters
    Type Name Description
    System.Collections.IComparer comparer

    The System.Collections.IComparer implementation to use when comparing elements.

    ToArray()

    Copies the elements of the ChartBaseList to a new System.Object array.

    Declaration
    public object[] ToArray()
    Returns
    Type Description
    System.Object[]

    An System.Object array containing copies of the elements of the ChartBaseList.

    ToArray(Type)

    Copies the elements of the ChartBaseList to a new array of the specified element type.

    Declaration
    public Array ToArray(Type type)
    Parameters
    Type Name Description
    System.Type type

    The element System.Type of the destination array to create and copy elements to.

    Returns
    Type Description
    System.Array

    An array of the specified element type containing copies of the elements of the ChartBaseList.

    Events

    Changed

    An event that is triggered when the collection is changed.

    Declaration
    public event ChartListChangeHandler Changed
    Event Type
    Type
    ChartListChangeHandler

    Explicit Interface Implementations

    IList.Add(Object)

    Adds an item to the ChartBaseList.

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

    The System.Object to add to the ChartBaseList.

    Returns
    Type Description
    System.Int32

    The position into which the new element was inserted.

    IList.Contains(Object)

    Determines whether the ChartBaseList contains a specific value.

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

    The System.Object to locate in the ChartBaseList.

    Returns
    Type Description
    System.Boolean

    true if the System.Object is found in the 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 ChartBaseList.

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

    The System.Object to locate in the ChartBaseList.

    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 ChartBaseList at the specified index.

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

    The zero-based index at which value should be inserted.

    System.Object value

    The System.Object to insert into the ChartBaseList.

    IList.Item[Int32]

    Gets or sets the element at the specified index.

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

    The zero-based index of the element to get or set.

    Returns
    Type Description
    System.Object

    The element at the specified index.

    IList.Remove(Object)

    Removes the first occurrence of a specific object from the ChartBaseList.

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

    The System.Object to remove from the ChartBaseList.

    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