AddRange Method (ToolStripItemCollection)
Collapse the table of content
Expand the table of content

ToolStripItemCollection.AddRange Method (ToolStripItemCollection)


Adds a ToolStripItemCollection to the current collection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public void AddRange(
	ToolStripItemCollection toolStripItems


Type: System.Windows.Forms.ToolStripItemCollection

The ToolStripItemCollection to be added to the current collection.

Exception Condition

The toolStripItems parameter is null.


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
Return to top
© 2016 Microsoft