ToolBar::ToolBarButtonCollection::IList::Insert Method (Int32, Object^)
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Inserts an existing toolbar button in the toolbar button collection at the specified location.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- index
-
Type:
System::Int32
The indexed location within the collection to insert the toolbar button.
- button
-
Type:
System::Object^
The ToolBarButton to insert.
Implements
IList::Insert(Int32, Object^)| Exception | Condition |
|---|---|
| ArgumentException | button is not a ToolBarButton. |
This member is an explicit interface member implementation. It can be used only when the ToolBar::ToolBarButtonCollection is cast to an IList interface.
.NET Framework
Available since 1.1
Available since 1.1
Show: