ToolStripItemCollection::AddRange Method (ToolStripItemCollection^)
.NET Framework (current version)
Adds a ToolStripItemCollection to the current collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- toolStripItems
-
Type:
System.Windows.Forms::ToolStripItemCollection^
The ToolStripItemCollection to be added to the current collection.
| Exception | Condition |
|---|---|
| ArgumentNullException | The toolStripItems parameter is null. |
| NotSupportedException | The ToolStripItemCollection is read-only. |
Use this overload of AddRange to merge one ToolStripItemCollection with another. You typically use this method with ToolStripOverflow, and you can easily use the Add, Insert, and Remove methods to modify the merged ToolStripItemCollection.
Use the overload of AddRange that takes a ToolStripItem array to copy an array of ToolStripItem controls to a ToolStripItemCollection.
.NET Framework
Available since 2.0
Available since 2.0
Show: