- name
- The name of the command.
- handler
- The handler to be invoked when the command is selected.
| Visual Basic (Declaration) | |
|---|---|
Overloads Public Function AddCommand( _ ByVal name As String, _ ByVal handler As EventHandler _ ) As CommandID | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As DicomEditableObject Dim name As String Dim handler As EventHandler Dim value As CommandID value = instance.AddCommand(name, handler) | |
| C# | |
|---|---|
public CommandID AddCommand( string name, EventHandler handler ) | |
| C++/CLI | |
|---|---|
public: CommandID^ AddCommand( String^ name, EventHandler^ handler ) | |
Parameters
- name
- The name of the command.
- handler
- The handler to be invoked when the command is selected.
Return Value
System.ComponentModel.Design.CommandID of the new command.Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
Copy Code