IMenuCommandService.RemoveCommand Method (MenuCommand)

 

Removes the specified standard menu command from the menu.

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

void RemoveCommand(
	MenuCommand command
)

Parameters

command
Type: System.ComponentModel.Design.MenuCommand

The MenuCommand to remove.

This method removes the specified MenuCommand if it is found. This method does not raise an exception or return a value if the specified MenuCommand is not found. Use the FindCommand method to determine whether a MenuCommand matching a specified CommandID is located on a menu.

.NET Framework
Available since 1.1
Return to top
Show: