ToolStripItemCollection.Add Method (ToolStripItem)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: