แก้ไข

แชร์ผ่าน


DesignerVerb Constructors

Definition

Initializes a new instance of the DesignerVerb class.

Overloads

DesignerVerb(String, EventHandler)

Initializes a new instance of the DesignerVerb class.

DesignerVerb(String, EventHandler, CommandID)

Initializes a new instance of the DesignerVerb class.

DesignerVerb(String, EventHandler)

Source:
DesignerVerb.cs
Source:
DesignerVerb.cs
Source:
DesignerVerb.cs

Initializes a new instance of the DesignerVerb class.

public:
 DesignerVerb(System::String ^ text, EventHandler ^ handler);
public DesignerVerb (string text, EventHandler handler);
new System.ComponentModel.Design.DesignerVerb : string * EventHandler -> System.ComponentModel.Design.DesignerVerb
Public Sub New (text As String, handler As EventHandler)

Parameters

text
String

The text of the menu command that is shown to the user.

handler
EventHandler

The event handler that performs the actions of the verb.

Remarks

Verbs are menu commands that are dynamically inserted into the menu at run time. Verb commands are usually displayed on either an edit menu or on a component's shortcut menu.

Applies to

DesignerVerb(String, EventHandler, CommandID)

Source:
DesignerVerb.cs
Source:
DesignerVerb.cs
Source:
DesignerVerb.cs

Initializes a new instance of the DesignerVerb class.

public:
 DesignerVerb(System::String ^ text, EventHandler ^ handler, System::ComponentModel::Design::CommandID ^ startCommandID);
public DesignerVerb (string text, EventHandler handler, System.ComponentModel.Design.CommandID startCommandID);
new System.ComponentModel.Design.DesignerVerb : string * EventHandler * System.ComponentModel.Design.CommandID -> System.ComponentModel.Design.DesignerVerb
Public Sub New (text As String, handler As EventHandler, startCommandID As CommandID)

Parameters

text
String

The text of the menu command that is shown to the user.

handler
EventHandler

The event handler that performs the actions of the verb.

startCommandID
CommandID

The starting command ID for this verb. By default, the designer architecture sets aside a range of command IDs for verbs. You can override this by providing a custom command ID.

Remarks

Verbs are menu commands that are dynamically inserted into the menu at run time. Verb commands are usually displayed on either an edit menu or on a component's shortcut menu.

Applies to