Creates a tool strip menu item given the TCommand definition.
| C# | Visual Basic | Visual C++ |
public static ToolStripMenuItem CreateToolStripMenuItem<TCommand>() where TCommand : new(), ICommand
Public Shared Function CreateToolStripMenuItem(Of TCommand As {New, ICommand}) As ToolStripMenuItem
public: generic<typename TCommand> where TCommand : gcnew(), ICommand static ToolStripMenuItem^ CreateToolStripMenuItem()
- TCommand
- The type of the command.
A tool strip menu item wired to the commands Execute()()() method.