Szerkesztés

Megosztás a következőn keresztül:


ToolStripItemCollection.AddRange Method

Definition

Adds ToolStripItem controls to the collection.

Overloads

AddRange(ToolStripItem[])

Adds an array of ToolStripItem controls to the collection.

AddRange(ToolStripItemCollection)

Adds a ToolStripItemCollection to the current collection.

AddRange(ToolStripItem[])

Adds an array of ToolStripItem controls to the collection.

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

Parameters

toolStripItems
ToolStripItem[]

An array of ToolStripItem controls.

Exceptions

The toolStripItems parameter is null.

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.

Applies to

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

toolStripItems
ToolStripItemCollection

The ToolStripItemCollection to be added to the current collection.

Exceptions

The toolStripItems parameter is null.

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