ToolStripItemCollection::Insert Method (Int32, ToolStripItem^)

 

Inserts the specified item into the collection at the specified index.

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

public:
void Insert(
	int index,
	ToolStripItem^ value
)

Parameters

index
Type: System::Int32

The location in the ToolStripItemCollection at which to insert the ToolStripItem.

value
Type: System.Windows.Forms::ToolStripItem^

The ToolStripItem to insert.

Exception Condition
ArgumentNullException

The value parameter is null.

.NET Framework
Available since 2.0
Return to top
Show: