System.Windows.Forms.ContextMenu Members

The members of System.Windows.Forms.ContextMenu are listed below.

See Also: Inherited members from System.Windows.Forms.Menu

Public Constructors

Initializes a new instance of the System.Windows.Forms.ContextMenu class with no menu items specified.

Initializes a new instance of the System.Windows.Forms.ContextMenu class with a specified set of System.Windows.Forms.MenuItem objects.

Public Properties

RightToLeftRightToLeft.

Gets or sets a value indicating whether text displayed by the control is displayed from right to left.

[read-only]
SourceControlControl.

Gets the control that is displaying the shortcut menu.

Public Methods

Show(Control, System.Drawing.Point)

Displays the shortcut menu at the specified position.

Show(Control, System.Drawing.Point, LeftRightAlignment)

Displays the shortcut menu at the specified position and with the specified alignment.

Protected Methods

OnCollapse(EventArgs)

Raises the ContextMenu.Collapse event.

OnPopup(EventArgs)

Raises the ContextMenu.Popup event

ProcessCmdKey(ref Message, Keys, Control) : bool
Documentation for this section has not yet been entered.

Public Events

Collapse

Occurs when the shortcut menu collapses.

Popup

Occurs before the shortcut menu is displayed.