IMenuCommandService.FindCommand(CommandID) IMenuCommandService.FindCommand(CommandID) IMenuCommandService.FindCommand(CommandID) Method

Definition

Searches for the specified command ID and returns the menu command associated with it.

public:
 System::ComponentModel::Design::MenuCommand ^ FindCommand(System::ComponentModel::Design::CommandID ^ commandID);
public System.ComponentModel.Design.MenuCommand FindCommand (System.ComponentModel.Design.CommandID commandID);
abstract member FindCommand : System.ComponentModel.Design.CommandID -> System.ComponentModel.Design.MenuCommand

Parameters

commandID
CommandID CommandID CommandID

The CommandID to search for.

Returns

The MenuCommand associated with the command ID, or null if no command is found.

Applies to

See also