ToolStripItemCollection::AddRange Method (array<ToolStripItem^>^)
.NET Framework (current version)
Adds an array of ToolStripItem controls to the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- toolStripItems
-
Type:
array<System.Windows.Forms::ToolStripItem^>^
An array of ToolStripItem controls.
| Exception | Condition |
|---|---|
| ArgumentNullException | The toolStripItems parameter is null. |
| NotSupportedException | The ToolStripItemCollection is read-only. |
Use this overload of AddRange to copy a ToolStripItem array to a ToolStripItemCollection. Use the overload of AddRange that takes a ToolStripItemCollection parameter to merge one ToolStripItemCollection with another.
.NET Framework
Available since 2.0
Available since 2.0
Show: