DesignerVerbCollection.AddRange Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Ajoute l'ensemble spécifié de verbes du concepteur à la collection.
Surcharges
AddRange(DesignerVerb[]) |
Ajoute l'ensemble spécifié de verbes du concepteur à la collection. |
AddRange(DesignerVerbCollection) |
Ajoute la collection spécifiée de verbes du concepteur à la collection. |
AddRange(DesignerVerb[])
- Source:
- DesignerVerbCollection.cs
- Source:
- DesignerVerbCollection.cs
- Source:
- DesignerVerbCollection.cs
Ajoute l'ensemble spécifié de verbes du concepteur à la collection.
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())
Paramètres
- value
- DesignerVerb[]
Tableau d'objets DesignerVerb à ajouter à la collection.
Exceptions
value
a la valeur null
.
Exemples
L’exemple de code suivant montre comment ajouter un tableau d’objets DesignerVerb à un 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)
S’applique à
AddRange(DesignerVerbCollection)
- Source:
- DesignerVerbCollection.cs
- Source:
- DesignerVerbCollection.cs
- Source:
- DesignerVerbCollection.cs
Ajoute la collection spécifiée de verbes du concepteur à la collection.
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)
Paramètres
- value
- DesignerVerbCollection
DesignerVerbCollection à ajouter à la collection.
Exceptions
value
a la valeur null
.
Exemples
L’exemple de code suivant montre comment ajouter une collection d’objets DesignerVerb à un 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)