Namespace: CleanCode.Forms
Assembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
If eventHandler is non-null, it is attached to the
Click event
of the new menu item.
If propertyName is non-null, its
DescriptionAttribute is used
as the menu item's tooltip.
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 )
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