IMenuCommandService::FindCommand Method (CommandID^)

 

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

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

MenuCommand^ FindCommand(
	CommandID^ commandID
)

Parameters

commandID
Type: System.ComponentModel.Design::CommandID^

The CommandID to search for.

Return Value

Type: System.ComponentModel.Design::MenuCommand^

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

.NET Framework
Available since 1.1
Return to top
Show: