DesignerVerbCollection.Insert Method (Int32, DesignerVerb)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Inserts the specified DesignerVerb at the specified index.

Namespace:   System.ComponentModel.Design
Assembly:  System (in System.dll)

public void Insert(
	int index,
	DesignerVerb value


Type: System.Int32

The index in the collection at which to insert the verb.

Type: System.ComponentModel.Design.DesignerVerb

The DesignerVerb to insert in the collection.

The following code example demonstrates how to insert a DesignerVerb into a DesignerVerbCollection at index 0.

// Inserts a DesignerVerb at index 0 of the collection.
collection.Insert( 0, new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) );

.NET Framework
Available since 1.1
Return to top