Searches for the given command ID and returns the MenuCommand associated with it.
[Visual Basic] Function FindCommand( _ ByVal commandID As CommandID _ ) As MenuCommand [C#] MenuCommand FindCommand( CommandID commandID ); [C++] MenuCommand* FindCommand( CommandID* commandID ) = 0; [JScript] function FindCommand( commandID : CommandID ) : MenuCommand;
The menu command associated with this command ID, or a null reference (in Visual Basic Nothing) if no command is found.
IMenuCommandService Interface | IMenuCommandService Members | System.ComponentModel.Design Namespace