alexa
menu

WinForms

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

    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
    Namespace: Syncfusion.Windows.Forms.Chart
    Assembly: Syncfusion.Chart.Base.dll
    Syntax
    public class ChartBaseList : Object, 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

    add_Changed(ChartListChangeHandler)

    Declaration
    public void add_Changed(ChartListChangeHandler value)
    Parameters
    Type Name Description
    ChartListChangeHandler value

    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.

    remove_Changed(ChartListChangeHandler)

    Declaration
    public void remove_Changed(ChartListChangeHandler value)
    Parameters
    Type Name Description
    ChartListChangeHandler value

    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

    Implements

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