A multi-item is a dynamic collection of menu items created at run time. Multi-items are useful when the items on a menu cannot be determined prior to run time or the items need to be modified based on the state of the system. A good example of this is the menu items at the bottom of the File menu representing the most recently used files. Inherit this abstract class to create a multi-item that can act like several adjacent menu items.

The MultiItem..::.Item type exposes the following members.

Constructors

  NameDescription
MultiItem..::.Item
Initializes a new instance of the MultiItem..::.Item class

Methods

  NameDescription
Dispose
Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize (Overrides Object..::.Finalize()()().)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
BeginGroup
Gets or sets a value indicating whether the item has a separator.
Caption
The caption of the item in the multiItem.
Checked
Gets or sets a value indicating whether this MultiItem..::.Item is checked.
Enabled
Gets or sets a value indicating whether this MultiItem..::.Item is enabled.
Image
Gets or sets the image of the item in the multiItem.
Message
The status bar message for the item in the multiItem.
Tag
Gets or sets the tag that is associated with the item.

Events

  NameDescription
OnClick
Occurs when the item is clicked.

See Also