Table of Contents

Constructor ToolStripMenuItem

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ToolStripMenuItem()

Initializes a new instance of the MenuItem class.

public ToolStripMenuItem()

ToolStripMenuItem(string, Image, EventHandler)

Initializes a new instance of the MenuItem class that displays the specified text and image and that does the specified action when the MenuItem is clicked.

public ToolStripMenuItem(string text, Image image, EventHandler onClick)

Parameters

text string

The text to display on the menu item.

image Image

The Image to display on the control.

onClick EventHandler

An event handler that raises the Click event when the control is clicked.

ToolStripMenuItem(string, KeyGesture)

Initializes a new instance of the MenuItem class with the specified text and shortcut for the menu item.

public ToolStripMenuItem(string text, KeyGesture shortcut)

Parameters

text string
shortcut KeyGesture

ToolStripMenuItem(string)

Initializes a new instance of the MenuItem class with the specified text for the menu item.

public ToolStripMenuItem(string text)

Parameters

text string

ToolStripMenuItem(string, EventHandler?, KeyGesture?)

Initializes a new instance of the MenuItem class with the specified text, onClick and shortcut for the menu item.

public ToolStripMenuItem(string text, EventHandler? onClick = null, KeyGesture? shortcut = null)

Parameters

text string
onClick EventHandler
shortcut KeyGesture

ToolStripMenuItem(string, Action?)

Initializes a new instance of the MenuItem class with the specified text and onClick for the menu item.

public ToolStripMenuItem(string text, Action? onClick)

Parameters

text string
onClick Action

ToolStripMenuItem(string, Action?, KeyGesture?)

Initializes a new instance of the MenuItem class with the specified text, onClick and shortcut for the menu item.

public ToolStripMenuItem(string text, Action? onClick, KeyGesture? shortcut)

Parameters

text string
onClick Action
shortcut KeyGesture