Creates a new menu item and attaches it to the ToolStripItemCollection of the
existing menuStrip.
Namespace: CleanCode.FormsAssembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
Syntax
public ToolStripMenuItem CreateMenuItem( ContextMenuStrip menuStrip, string label, EventHandler eventHandler, string propertyName )
Parameters
- menuStrip
- Type: System.Windows.Forms ContextMenuStrip
The parent ContextMenuStrip.
- label
- Type: System String
The text of the menu item.
- eventHandler
- Type: System EventHandler
The optional event handler.
- propertyName
- Type: System String
The optional property name.
Return Value
The new menu item.Remarks
See Also