Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MenuCommandService.RemoveCommand Method

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.

Implements

IMenuCommandService.RemoveCommand(MenuCommand)

ExceptionCondition
ArgumentNullException

command is null.

If there are no more commands in the command group, the group is removed.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft