ToolStripItemCollection.AddRange Method

Definition

Agrega controles ToolStripItem a la colección.Adds ToolStripItem controls to the collection.

Overloads

AddRange(ToolStripItem[])

Agrega una matriz de controles ToolStripItem a la colección.Adds an array of ToolStripItem controls to the collection.

AddRange(ToolStripItemCollection)

Agrega un objeto ToolStripItemCollection a la colección actual.Adds a ToolStripItemCollection to the current collection.

AddRange(ToolStripItem[])

Agrega una matriz de controles ToolStripItem a la colección.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[]

Matriz de controles ToolStripItem.An array of ToolStripItem controls.

Exceptions

El parámetro toolStripItems es null.The toolStripItems parameter is null.

Remarks

Utilice esta sobrecarga de AddRange para copiar una matriz de ToolStripItem en un ToolStripItemCollection.Use this overload of AddRange to copy a ToolStripItem array to a ToolStripItemCollection. Use la sobrecarga de AddRange que toma un parámetro ToolStripItemCollection para combinar un ToolStripItemCollection con otro.Use the overload of AddRange that takes a ToolStripItemCollection parameter to merge one ToolStripItemCollection with another.

AddRange(ToolStripItemCollection)

Agrega un objeto ToolStripItemCollection a la colección actual.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

ToolStripItemCollection que se va a agregar a la colección actual.The ToolStripItemCollection to be added to the current collection.

Exceptions

El parámetro toolStripItems es null.The toolStripItems parameter is null.

Remarks

Utilice esta sobrecarga de AddRange para combinar una ToolStripItemCollection con otra.Use this overload of AddRange to merge one ToolStripItemCollection with another. Normalmente, este método se utiliza con ToolStripOverflow, y se pueden usar fácilmente los métodos Add, Inserty Remove para modificar la ToolStripItemCollectioncombinada.You typically use this method with ToolStripOverflow, and you can easily use the Add, Insert, and Remove methods to modify the merged ToolStripItemCollection.

Utilice la sobrecarga de AddRange que toma una matriz ToolStripItem para copiar una matriz de controles ToolStripItem en un ToolStripItemCollection.Use the overload of AddRange that takes a ToolStripItem array to copy an array of ToolStripItem controls to a ToolStripItemCollection.

Applies to