ToolStripItemCollection.AddRange ToolStripItemCollection.AddRange ToolStripItemCollection.AddRange ToolStripItemCollection.AddRange Method

Definition

Adds ToolStripItem controls to the collection.

Overloads

AddRange(ToolStripItem[]) AddRange(ToolStripItem[]) AddRange(ToolStripItem[]) AddRange(ToolStripItem[])

Adds an array of ToolStripItem controls to the collection.

AddRange(ToolStripItemCollection) AddRange(ToolStripItemCollection) AddRange(ToolStripItemCollection) AddRange(ToolStripItemCollection)

Adds a ToolStripItemCollection to the current collection.

AddRange(ToolStripItem[]) AddRange(ToolStripItem[]) AddRange(ToolStripItem[]) AddRange(ToolStripItem[])

Adds an array of ToolStripItem controls to the collection.

public:
 void AddRange(cli::array <System::Windows::Forms::ToolStripItem ^> ^ toolStripItems);
public void AddRange (System.Windows.Forms.ToolStripItem[] toolStripItems);
member this.AddRange : System.Windows.Forms.ToolStripItem[] -> unit
Public Sub AddRange (toolStripItems As ToolStripItem())

Parameters

toolStripItems
ToolStripItem[]

An array of ToolStripItem controls.

Exceptions

Remarks

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.

AddRange(ToolStripItemCollection) AddRange(ToolStripItemCollection) AddRange(ToolStripItemCollection) AddRange(ToolStripItemCollection)

Adds a ToolStripItemCollection to the current collection.

public:
 void AddRange(System::Windows::Forms::ToolStripItemCollection ^ toolStripItems);
public void AddRange (System.Windows.Forms.ToolStripItemCollection toolStripItems);
member this.AddRange : System.Windows.Forms.ToolStripItemCollection -> unit
Public Sub AddRange (toolStripItems As ToolStripItemCollection)

Parameters

Exceptions

Remarks

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.

Applies to