DesignerVerbCollection::Insert Method (Int32, DesignerVerb^)

 

Inserts the specified DesignerVerb at the specified index.

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

public:
void Insert(
	int index,
	DesignerVerb^ value
)

Parameters

index
Type: System::Int32

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

value
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, gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ) );

.NET Framework
Available since 1.1
Return to top
Show: