ToolStripItemCollection::AddRange Method (array<ToolStripItem^>^)

 

Adds an array of ToolStripItem controls to the collection.

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

public:
void AddRange(
	array<ToolStripItem^>^ toolStripItems
)

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
Return to top
Show: