IMenuCommandService.FindCommand(CommandID) Método

Definição

Pesquisa a ID de comando especificada e retorna o comando de menu associado a ela.

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

Parâmetros

commandID
CommandID

O CommandID a ser pesquisado.

Retornos

O MenuCommand associado à ID de comando ou null, se nenhum comando for encontrado.

Aplica-se a

Confira também