Creates a new menu item and attaches it to the ToolStripItemCollection of the
existing item.
Namespace: CleanCode.FormsAssembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
Syntax
public ToolStripMenuItem CreateMenuItem( ToolStripMenuItem item, string label, EventHandler eventHandler, string propertyName )
Parameters
- item
- Type: System.Windows.Forms ToolStripMenuItem
The parent ToolStripMenuItem containing a ToolStripItemCollection on the DropDownItems property.
- 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