ToolBar::ToolBarButtonCollection::IList::Add Method (Object^)
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Adds the specified toolbar button to the end of the toolbar button collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- button
-
Type:
System::Object^
The ToolBarButton to be added after all existing buttons.
Return Value
Type: System::Int32The zero-based index value of the ToolBarButton added to the collection.
Implements
IList::Add(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: