ToolStripItemCollection::Add Method (ToolStripItem^)
.NET Framework (current version)
Adds the specified item to the end of the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- value
-
Type:
System.Windows.Forms::ToolStripItem^
The ToolStripItem to add to the end of the collection.
Return Value
Type: System::Int32An Int32 representing the zero-based index of the new item in the collection.
| Exception | Condition |
|---|---|
| ArgumentNullException | The value parameter is null. |
.NET Framework
Available since 2.0
Available since 2.0
Show: