DesignerVerbCollection.AddRange Method

Definition

Adds the specified set of designer verbs to the collection.

Overloads

AddRange(DesignerVerb[])

Adds the specified set of designer verbs to the collection.

AddRange(DesignerVerbCollection)

Adds the specified collection of designer verbs to the collection.

AddRange(DesignerVerb[])

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

Adds the specified set of designer verbs to the collection.

C#
public void AddRange(System.ComponentModel.Design.DesignerVerb?[] value);
C#
public void AddRange(System.ComponentModel.Design.DesignerVerb[] value);

Parameters

value
DesignerVerb[]

An array of DesignerVerb objects to add to the collection.

Exceptions

value is null.

Examples

The following code example demonstrates how to add an array of DesignerVerb objects to a DesignerVerbCollection.

C#
// 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 );

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

AddRange(DesignerVerbCollection)

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

Adds the specified collection of designer verbs to the collection.

C#
public void AddRange(System.ComponentModel.Design.DesignerVerbCollection value);

Parameters

value
DesignerVerbCollection

A DesignerVerbCollection to add to the collection.

Exceptions

value is null.

Examples

The following code example demonstrates how to add a collection of DesignerVerb objects to a DesignerVerbCollection.

C#
// 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 );

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1