NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DesignerVerb Constructor (String, EventHandler, CommandID)

Initializes a new instance of the DesignerVerb class.

[Visual Basic]
Overloads Public Sub New( _
   ByVal text As String, _
   ByVal handler As EventHandler, _
   ByVal startCommandID As CommandID _
)
[C#]
public DesignerVerb(
   string text,
   EventHandler handler,
   CommandID startCommandID
);
[C++]
public: DesignerVerb(
   String* text,
   EventHandler* handler,
   CommandID* startCommandID
);
[JScript]
public function DesignerVerb(
   text : String,
   handler : EventHandler,
   startCommandID : CommandID
);

Parameters

text
The text of the menu command that is shown to the user.
handler
The event handler to be invoked when the verb is executed.
startCommandID
The starting command ID for this verb. By default, the designer architecture sets aside a range of command IDs for verbs. You may override this by providing a custom command ID here.

Remarks

Verbs are dynamic menu commands whose text and image can be determined at runtime. Verb commands generally show up on either an edit menu or a component's context menu.

See Also

DesignerVerb Class | DesignerVerb Members | System.ComponentModel.Design Namespace | DesignerVerb Constructor Overload List | CommandID | MenuCommand | IMenuCommandService