menu

WinForms

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

    Show / Hide Table of Contents

    Class ChartAxisLabelCollection

    Collection of custom ChartAxis labels. These labels will be used as axis labels when the value type of the ChartAxis is set to custom. ChartValueType

    Inheritance
    System.Object
    System.Collections.CollectionBase
    ChartAxisLabelCollection
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    IChartAxisLabelModel
    Inherited Members
    System.Collections.CollectionBase.Capacity
    System.Collections.CollectionBase.Clear()
    System.Collections.CollectionBase.Count
    System.Collections.CollectionBase.GetEnumerator()
    System.Collections.CollectionBase.InnerList
    System.Collections.CollectionBase.List
    System.Collections.CollectionBase.OnClear()
    System.Collections.CollectionBase.OnClearComplete()
    System.Collections.CollectionBase.OnInsert(System.Int32, System.Object)
    System.Collections.CollectionBase.OnInsertComplete(System.Int32, System.Object)
    System.Collections.CollectionBase.OnRemove(System.Int32, System.Object)
    System.Collections.CollectionBase.OnRemoveComplete(System.Int32, System.Object)
    System.Collections.CollectionBase.OnSet(System.Int32, System.Object, System.Object)
    System.Collections.CollectionBase.OnSetComplete(System.Int32, System.Object, System.Object)
    System.Collections.CollectionBase.OnValidate(System.Object)
    System.Collections.CollectionBase.RemoveAt(System.Int32)
    System.Collections.CollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
    System.Collections.CollectionBase.System.Collections.ICollection.IsSynchronized
    System.Collections.CollectionBase.System.Collections.ICollection.SyncRoot
    System.Collections.CollectionBase.System.Collections.IList.Add(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Contains(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.get_Item(System.Int32)
    System.Collections.CollectionBase.System.Collections.IList.IndexOf(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Insert(System.Int32, System.Object)
    System.Collections.CollectionBase.System.Collections.IList.IsFixedSize
    System.Collections.CollectionBase.System.Collections.IList.IsReadOnly
    System.Collections.CollectionBase.System.Collections.IList.Item[System.Int32]
    System.Collections.CollectionBase.System.Collections.IList.Remove(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.set_Item(System.Int32, System.Object)
    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 ChartAxisLabelCollection : CollectionBase, IList, ICollection, IEnumerable, IChartAxisLabelModel

    Constructors

    ChartAxisLabelCollection()

    To prevent collection construction without ChartAxis reference.

    Declaration
    public ChartAxisLabelCollection()

    Properties

    Item[Int32]

    Returns the axis label at the specified index value.

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

    Methods

    Add(ChartAxisLabel)

    Adds the specified label to this collection.

    Declaration
    public void Add(ChartAxisLabel label)
    Parameters
    Type Name Description
    ChartAxisLabel label

    An instance of the label that is to be to add.

    GetLabelAt(Int32)

    Gets the label at the specified index.

    Declaration
    public ChartAxisLabel GetLabelAt(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The index value to look for.

    Returns
    Type Description
    ChartAxisLabel

    The ChartAxis label at the specified index.

    IndexOf(ChartAxisLabel)

    Looks up this collection and returns the index value of the specified label.

    Declaration
    public int IndexOf(ChartAxisLabel label)
    Parameters
    Type Name Description
    ChartAxisLabel label

    Label to look for in this collection.

    Returns
    Type Description
    System.Int32

    The index value of the label if the look up is successful; -1 otherwise.

    Insert(Int32, ChartAxisLabel)

    Inserts the specified label at the specified index.

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

    Index value where the label that is to be inserted.

    ChartAxisLabel label

    An instance of the label that is to be added.

    Remove(ChartAxisLabel)

    Removes the specified label from this collection.

    Declaration
    public void Remove(ChartAxisLabel label)
    Parameters
    Type Name Description
    ChartAxisLabel label

    Label that is to be removed.

    Events

    Changed

    An event that is triggered when a custom axis label is changed.

    Declaration
    public event EventHandler Changed
    Event Type
    Type
    System.EventHandler

    Implements

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

    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