menu

WinForms

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

    Show / Hide Table of Contents

    Class ChartLegendCollection

    Collection of IChartLegend instances.

    Inheritance
    System.Object
    ChartBaseList
    ChartLegendCollection
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Inherited Members
    ChartBaseList.Changed
    ChartBaseList.Clear()
    ChartBaseList.CopyTo(Array, Int32)
    ChartBaseList.Count
    ChartBaseList.GetEnumerator()
    ChartBaseList.IList.Add(Object)
    ChartBaseList.IList.Contains(Object)
    ChartBaseList.IList.get_Item(Int32)
    ChartBaseList.IList.IndexOf(Object)
    ChartBaseList.IList.Insert(Int32, Object)
    ChartBaseList.IList.Item[Int32]
    ChartBaseList.IList.Remove(Object)
    ChartBaseList.IList.set_Item(Int32, Object)
    ChartBaseList.IsFixedSize
    ChartBaseList.IsReadOnly
    ChartBaseList.IsSynchronized
    ChartBaseList.RemoveAt(Int32)
    ChartBaseList.Sort(IComparer)
    ChartBaseList.SyncRoot
    ChartBaseList.ToArray()
    ChartBaseList.ToArray(Type)
    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
    [Obsolete]
    public class ChartLegendCollection : ChartBaseList, IList, ICollection, IEnumerable

    Constructors

    ChartLegendCollection()

    Initializes a new instance of the ChartLegendCollection class.

    Declaration
    public ChartLegendCollection()

    Properties

    Item[Int32]

    Gets or sets IChartLegend by the index.

    Declaration
    public IChartLegend this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index

    Index of IChartLegend.

    Property Value
    Type
    IChartLegend

    Item[String]

    Gets IChartLegend by the name.

    Declaration
    public IChartLegend this[string name] { get; }
    Parameters
    Type Name Description
    System.String name

    Name of IChartLegend.

    Property Value
    Type
    IChartLegend

    Methods

    Add(IChartLegend)

    Adds IChartLegend to collection.

    Declaration
    public int Add(IChartLegend value)
    Parameters
    Type Name Description
    IChartLegend value

    Instance of IChartLegend class.

    Returns
    Type Description
    System.Int32

    Index of item.

    Contains(IChartLegend)

    Determines whether the ChartLegendCollection contains a specific item.

    Declaration
    public bool Contains(IChartLegend value)
    Parameters
    Type Name Description
    IChartLegend value

    Instance of IChartLegend class.

    Returns
    Type Description
    System.Boolean

    true if the IChartLegend is found in the collection; otherwise, false.

    IndexOf(IChartLegend)

    Determines the index of a specific item in the collection.

    Declaration
    public int IndexOf(IChartLegend value)
    Parameters
    Type Name Description
    IChartLegend value

    Instance of IChartLegend class.

    Returns
    Type Description
    System.Int32

    Index of specified IChartLegend.

    Insert(Int32, IChartLegend)

    Inserts an item to the collection at the specified index.

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

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

    IChartLegend value

    Instance of IChartLegend class.

    Remove(IChartLegend)

    Removes the specific IChartLegend from the collection.

    Declaration
    public void Remove(IChartLegend value)
    Parameters
    Type Name Description
    IChartLegend value

    Instance of IChartLegend class.

    Validate(Object)

    Validates the specified object.

    Declaration
    protected override bool Validate(object obj)
    Parameters
    Type Name Description
    System.Object obj

    An System.Object to validation.

    Returns
    Type Description
    System.Boolean

    true if specified System.Object is IChartLegend and collection doesn't contain it; otherwise, false.

    Overrides
    Syncfusion.Windows.Forms.Chart.ChartBaseList.Validate(System.Object)

    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