alexa
menu

WinForms

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

    Show / Hide Table of Contents

    Class ChartToolBarButtonCollection

    Collection of System.Windows.Forms.Button instances.

    Inheritance
    System.Object
    ChartToolBarButtonCollection
    Namespace: Syncfusion.Windows.Forms.Chart
    Assembly: Syncfusion.Chart.Windows.dll
    Syntax
    public class ChartToolBarButtonCollection : CollectionBase

    Constructors

    ChartToolBarButtonCollection()

    Initializes a new instance of the ChartToolBarButtonCollection class.

    Declaration
    public ChartToolBarButtonCollection()

    Properties

    Item[Int32]

    Gets or sets the item with the specified index.

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

    Methods

    Add(Button)

    Adds this button in the collection.

    Declaration
    public int Add(Button value)
    Parameters
    Type Name Description
    System.Windows.Forms.Button value
    Returns
    Type Description
    System.Int32

    The position into which the new element was inserted.

    add_AddButton(ButtonCollectionEventHandler)

    Declaration
    public void add_AddButton(ButtonCollectionEventHandler value)
    Parameters
    Type Name Description
    ButtonCollectionEventHandler value

    add_RemoveButton(ButtonCollectionEventHandler)

    Declaration
    public void add_RemoveButton(ButtonCollectionEventHandler value)
    Parameters
    Type Name Description
    ButtonCollectionEventHandler value

    Contains(Button)

    Indicates if this collection contains the specified button.

    Declaration
    public bool Contains(Button value)
    Parameters
    Type Name Description
    System.Windows.Forms.Button value

    The Element to locate in the Collections.

    Returns
    Type Description
    System.Boolean

    true if the Element is found in the Collection list; otherwise, false

    IndexOf(Button)

    Returns the index of this button.

    Declaration
    public int IndexOf(Button value)
    Parameters
    Type Name Description
    System.Windows.Forms.Button value

    The Element to locate in the Collections list.

    Returns
    Type Description
    System.Int32

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

    OnClearComplete()

    Performs additional custom processes after clearing the contents of the System.Collections.CollectionBase instance.

    Declaration
    protected override void OnClearComplete()

    OnInsertComplete(Int32, Object)

    Performs additional custom processes after inserting a new element into the System.Collections.CollectionBase instance.

    Declaration
    protected override void OnInsertComplete(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index at which to insert value.

    System.Object value

    The new value of the element at index.

    OnRemove(Int32, Object)

    Performs additional custom processes when removing an element from the System.Collections.CollectionBase instance.

    Declaration
    protected override void OnRemove(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index at which value can be found.

    System.Object value

    The value of the element to remove from index.

    Remove(Button)

    Removes the specified button from the collection.

    Declaration
    public void Remove(Button value)
    Parameters
    Type Name Description
    System.Windows.Forms.Button value

    The Element to remove from the collection.

    remove_AddButton(ButtonCollectionEventHandler)

    Declaration
    public void remove_AddButton(ButtonCollectionEventHandler value)
    Parameters
    Type Name Description
    ButtonCollectionEventHandler value

    remove_RemoveButton(ButtonCollectionEventHandler)

    Declaration
    public void remove_RemoveButton(ButtonCollectionEventHandler value)
    Parameters
    Type Name Description
    ButtonCollectionEventHandler value

    Events

    AddButton

    Event will be raised when a button is added this collection.

    Declaration
    public event ButtonCollectionEventHandler AddButton
    Event Type
    Type
    ButtonCollectionEventHandler

    ClearButtons

    Event will be raised when the collection is cleared.

    Declaration
    public event EventHandler ClearButtons
    Event Type
    Type
    System.EventHandler

    RemoveButton

    Event will be raised when a button is removed from this collection.

    Declaration
    public event ButtonCollectionEventHandler RemoveButton
    Event Type
    Type
    ButtonCollectionEventHandler
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved