Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft