In This Article

IMenu Interface

Provides the base requirements for an object that defines a menu.

public interface IMenu

Remarks

Instances of this type are typically created by CreateMenu(MenuFactoryMenuOptions?), and the current menu factory can be accessed from Current.

Properties

Items

The collection of items that belong to the menu.

IMenuItemCollection Items { get; }

Property Value

IMenuItemCollection

Methods

Show(Control, Point)

Positions the menu relative to the specified control location.

void Show(Control control, Point position)
Parameter Type Description
control Control

The control that is the reference point for the menu position.

position Point

The location of the reference control's upper-left corner, in pixels.

Exceptions

Type Condition
ArgumentNullException

Extension Methods