DesignerVerbCollection.Add Method (DesignerVerb)


Adds the specified DesignerVerb to the collection.

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

public int Add(
	DesignerVerb value


Type: System.ComponentModel.Design.DesignerVerb

The DesignerVerb to add to the collection.

Return Value

Type: System.Int32

The index in the collection at which the verb was added.

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

// Adds a DesignerVerb to the collection.
collection.Add( new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) );

.NET Framework
Available since 1.1
Return to top