MenuCommandService::RemoveCommand Method (MenuCommand^)

 

Removes the given menu command from the document.

Namespace:   System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

public:
virtual void RemoveCommand(
	MenuCommand^ command
)

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
Return to top
Show: