ToolStripItemCollection::Add Method (ToolStripItem^)

 

Adds the specified item to the end of the collection.

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

public:
int Add(
	ToolStripItem^ value
)

Parameters

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

The ToolStripItem to add to the end of the collection.

Return Value

Type: System::Int32

An Int32 representing the zero-based index of the new item in the collection.

Exception Condition
ArgumentNullException

The value parameter is null.

.NET Framework
Available since 2.0
Return to top
Show: