Upraviť

Zdieľať cez


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);
public System.ComponentModel.Design.MenuCommand? FindCommand (System.ComponentModel.Design.CommandID commandID);
abstract member FindCommand : System.ComponentModel.Design.CommandID -> System.ComponentModel.Design.MenuCommand
Public Function FindCommand (commandID As CommandID) As MenuCommand

Parameters

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