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

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

public ToolStripMenuItem CreateMenuItem(
	ContextMenuStrip menuStrip,
	string label,
	EventHandler eventHandler,
	string propertyName
)

Return Value

The new menu item.
Remarks

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