Compartir vía


DesignerVerbCollection.AddRange Método

Definición

Agrega el conjunto especificado de verbos del diseñador a la colección.

Sobrecargas

AddRange(DesignerVerb[])

Agrega el conjunto especificado de verbos del diseñador a la colección.

AddRange(DesignerVerbCollection)

Agrega la colección especificada de verbos del diseñador a la colección.

AddRange(DesignerVerb[])

Source:
DesignerVerbCollection.cs
Source:
DesignerVerbCollection.cs
Source:
DesignerVerbCollection.cs

Agrega el conjunto especificado de verbos del diseñador a la colección.

public:
 void AddRange(cli::array <System::ComponentModel::Design::DesignerVerb ^> ^ value);
public void AddRange (System.ComponentModel.Design.DesignerVerb[] value);
public void AddRange (System.ComponentModel.Design.DesignerVerb?[] value);
member this.AddRange : System.ComponentModel.Design.DesignerVerb[] -> unit
Public Sub AddRange (value As DesignerVerb())

Parámetros

value
DesignerVerb[]

Matriz de objetos DesignerVerb que se agregará a la colección.

Excepciones

value es null.

Ejemplos

En el ejemplo de código siguiente se muestra cómo agregar una matriz de DesignerVerb objetos a .DesignerVerbCollection

// Adds an array of DesignerVerb objects to the collection.
array<DesignerVerb^>^ verbs = {
   gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ),
   gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) )};
collection->AddRange( verbs );

// Adds a collection of DesignerVerb objects to the collection.
DesignerVerbCollection^ verbsCollection = gcnew DesignerVerbCollection;
verbsCollection->Add( gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ) );
verbsCollection->Add( gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ) );
collection->AddRange( verbsCollection );
// Adds an array of DesignerVerb objects to the collection.
DesignerVerb[] verbs = { new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)), new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) };
collection.AddRange( verbs );

// Adds a collection of DesignerVerb objects to the collection.
DesignerVerbCollection verbsCollection = new DesignerVerbCollection();
verbsCollection.Add( new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) );
verbsCollection.Add( new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) );
collection.AddRange( verbsCollection );
' Adds an array of DesignerVerb objects to the collection.
Dim verbs As DesignerVerb() = {New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent)), New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent))}
collection.AddRange(verbs)

' Adds a collection of DesignerVerb objects to the collection.
Dim verbsCollection As New DesignerVerbCollection()
verbsCollection.Add(New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent)))
verbsCollection.Add(New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent)))
collection.AddRange(verbsCollection)

Se aplica a

AddRange(DesignerVerbCollection)

Source:
DesignerVerbCollection.cs
Source:
DesignerVerbCollection.cs
Source:
DesignerVerbCollection.cs

Agrega la colección especificada de verbos del diseñador a la colección.

public:
 void AddRange(System::ComponentModel::Design::DesignerVerbCollection ^ value);
public void AddRange (System.ComponentModel.Design.DesignerVerbCollection value);
member this.AddRange : System.ComponentModel.Design.DesignerVerbCollection -> unit
Public Sub AddRange (value As DesignerVerbCollection)

Parámetros

value
DesignerVerbCollection

Objeto DesignerVerbCollection que se va a agregar a la colección.

Excepciones

value es null.

Ejemplos

En el ejemplo de código siguiente se muestra cómo agregar una colección de DesignerVerb objetos a .DesignerVerbCollection

// Adds an array of DesignerVerb objects to the collection.
array<DesignerVerb^>^ verbs = {
   gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ),
   gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) )};
collection->AddRange( verbs );

// Adds a collection of DesignerVerb objects to the collection.
DesignerVerbCollection^ verbsCollection = gcnew DesignerVerbCollection;
verbsCollection->Add( gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ) );
verbsCollection->Add( gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ) );
collection->AddRange( verbsCollection );
// Adds an array of DesignerVerb objects to the collection.
DesignerVerb[] verbs = { new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)), new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) };
collection.AddRange( verbs );

// Adds a collection of DesignerVerb objects to the collection.
DesignerVerbCollection verbsCollection = new DesignerVerbCollection();
verbsCollection.Add( new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) );
verbsCollection.Add( new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) );
collection.AddRange( verbsCollection );
' Adds an array of DesignerVerb objects to the collection.
Dim verbs As DesignerVerb() = {New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent)), New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent))}
collection.AddRange(verbs)

' Adds a collection of DesignerVerb objects to the collection.
Dim verbsCollection As New DesignerVerbCollection()
verbsCollection.Add(New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent)))
verbsCollection.Add(New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent)))
collection.AddRange(verbsCollection)

Se aplica a