MenuCommandService::RemoveCommand Method (MenuCommand^)
.NET Framework (current version)
Removes the given menu command from the document.
Assembly: System.Design (in System.Design.dll)
Parameters
- command
-
Type:
System.ComponentModel.Design::MenuCommand^
The command to remove.
| Exception | Condition |
|---|---|
| ArgumentNullException | command is null. |
If there are no more commands in the command group, the group is removed.
.NET Framework
Available since 2.0
Available since 2.0
Show: