- name
- The name command.
- enable
- if set to
trueenable the command.
- handler
- The event handler that peforms the actions for the command.
| Visual Basic (Declaration) | |
|---|---|
Overloads Public Function AddCommand( _ ByVal name As String, _ ByVal enable As Boolean, _ ByVal handler As EventHandler _ ) As CommandID | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As DicomPropertyGrid Dim name As String Dim enable As Boolean Dim handler As EventHandler Dim value As CommandID value = instance.AddCommand(name, enable, handler) | |
| C++/CLI | |
|---|---|
public: CommandID^ AddCommand( String^ name, bool enable, EventHandler^ handler ) | |
Parameters
- name
- The name command.
- enable
- if set to
trueenable the command. - handler
- The event handler that peforms the actions for the command.
Return Value
The CommandID associated with the 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