MenuBuilder CreateMenuItem Method (ToolStripMenuItem, String, EventHandler, String)CleanCode C# Libraries v1.2.03 API
Creates a new menu item and attaches it to the OnlineToolStripItemCollection of the existing item.

Namespace: CleanCode.Forms
Assembly: CleanCode (in CleanCode.dll) Version: (1.2.03)

public ToolStripMenuItem CreateMenuItem(
	ToolStripMenuItem item,
	string label,
	EventHandler eventHandler,
	string propertyName

Return Value

The new menu item.

If eventHandler is non-null, it is attached to the OnlineClick event of the new menu item. If propertyName is non-null, its OnlineDescriptionAttribute is used as the menu item's tooltip.
See Also