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
)

Parameters

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

.NET Framework
Available since 1.1
Return to top
Show: