System.Windows.Forms.ToolBar.Buttons Property

Gets the collection of System.Windows.Forms.ToolBarButton controls assigned to the toolbar control.

Syntax

[System.ComponentModel.MergableProperty(false)]
[System.ComponentModel.Localizable(true)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)]
public ToolBar.ToolBarButtonCollection Buttons { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The ToolBar.Buttons property is a zero-based indexed collection used to hold all the System.Windows.Forms.ToolBarButton controls assigned to the toolbar. Because the property is read-only, it can not be assigned a collection of toolbar buttons directly. Toolbar buttons can be added or removed by using the methods inherited from the System.Windows.Forms.ToolBar.ToolBarButtonCollection class. Use the System.Windows.Forms.ToolBar.ToolBarButtonCollection.Add(ToolBarButton) method to add individual buttons and the System.Windows.Forms.ToolBar.ToolBarButtonCollection.Remove(ToolBarButton) method to delete a button. Call the System.Windows.Forms.ToolBar.ToolBarButtonCollection.Clear method to remove all the buttons from the collection.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0