menu

WinForms

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

    Show / Hide Table of Contents

    Class ChartLegendsList

    A collection of ChartLegend items.

    Inheritance
    System.Object
    ChartBaseList
    ChartLegendsList
    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.Windows.dll
    Syntax
    public class ChartLegendsList : ChartBaseList, IList, ICollection, IEnumerable

    Constructors

    ChartLegendsList()

    Initializes a new instance of the ChartLegendsList class.

    Declaration
    public ChartLegendsList()

    Properties

    Item[Int32]

    Gets or sets the ChartLegend at the specified index.

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

    The ChartLegends Indexer.

    Item[String]

    Gets ChartLegend by the name.

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

    Methods

    Add(ChartLegend)

    Adds the specified ChartLegend.

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

    The ChartLegend.

    Returns
    Type Description
    System.Int32

    The position into which the new element was inserted.

    Contains(ChartLegend)

    Determines whether collection contains the specified ChartLegend.

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

    The ChartLegend.

    Returns
    Type Description
    System.Boolean

    true if collection contains the specified ChartLegend; otherwise, false.

    IndexOf(ChartLegend)

    Returns index of specified ChartLegend

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

    The ChartLegend.

    Returns
    Type Description
    System.Int32

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

    Insert(Int32, ChartLegend)

    Inserts ChartLegend to the collection by the specified index.

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

    The index.

    ChartLegend value

    The ChartLegend.

    Remove(ChartLegend)

    Removes the specified ChartLegend.

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

    The ChartLegend.

    Validate(Object)

    Performs additional custom processes when validating a value

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

    The object to validate.

    Returns
    Type Description
    System.Boolean

    If is true, value is approved.

    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