Wimark.Controls Class Library  

MenuItem Members

MenuItem overview

Public Constructors

public constructorMenuItem Constructor Overloaded. Initializes a new instance of the class with a specified caption and event handler for the Click event of the menu item.

Public Properties

public propertyBounds Gets the bounds of the menu item.
public propertyBreak Gets or sets a value indicating whether the item is placed on a new line (for a menu item added to a MainMenu object) or in a new column (for a menu item or submenu item displayed in a ContextMenu).
public propertyChecked Gets or sets a value indicating whether a check mark appears next to the text of the menu item.
public propertyCommand Gets or sets the command this menu item should be connected to.
public propertyContainer (inherited from Component) Gets the IContainer that contains the Component.
public propertyDefaultItem Gets or sets a value indicating whether the menu item is the default menu item.
public propertyDescription Gets or sets a value that describes the menu item.
public propertyEditor Gets or sets the editor that is associated with the menu item.
public propertyEnabled Gets or sets a value indicating whether the menu item is enabled.
public propertyImage Gets the image assigned to the menu item.
public propertyImageIndex Gets or sets the index value of the image assigned to the menu item.
public propertyIndex Gets or sets a value indicating the position of the menu item in its parent menu.
public propertyInfrequent Gets or sets a value indicating whether the menu item should be hided by the infrequent filter if it hasn't been used recently.
public propertyIsParent Gets a value indicating whether the menu item contains child menu items.
public propertyMdiList Gets or sets a value indicating whether the menu item will be populated with a list of the Multiple Document Interface (MDI) child windows that are displayed within the associated form.
public propertyMenuItems Gets a value indicating the collection of MenuItem objects associated with the menu item.
public propertyMergeOrder Gets or sets a value indicating the relative position of the menu item when it is merged with another.
public propertyMergeType Gets or sets a value indicating the behavior of this menu item when its menu is merged with another.
public propertyMnemonic Gets a value indicating the mnemonic character that is associated with this menu item.
public propertyOwnerDraw Gets or sets a value indicating whether the code that you provide draws the menu item or the renderer draws the menu item.
public propertyParent Gets a value indicating the menu that contains this menu item.
public propertyParentItem Gets a value indicating the parent menu item that contains this menu item.
public propertyRadioCheck Gets or sets a value indicating whether the MenuItem, if checked, displays a radio-button instead of a check mark.
public propertyShortcut Gets or sets a value indicating the shortcut key associated with the menu item.
public propertyShowShortcut Gets or sets a value indicating whether the shortcut key that is associated with the menu item is displayed next to the menu item caption.
public propertySite (inherited from Component) Gets or sets the ISite of the Component.
public propertyTag Gets or sets the object that contains data about the menu item.
public propertyText Gets or sets a value indicating the caption of the menu item.
public propertyVisible Gets or sets a value indicating whether the menu item is visible.

Public Methods

public methodCloneMenu Overloaded. Creates a copy of the current MenuItem.
public methodCreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public methodDispose (inherited from Component) Overloaded. Releases the resources used by the Component.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetContextMenu Gets the ContextMenu that contains this menu item.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public methodGetMainMenu Gets the MainMenu that contains this menu item.
public methodGetShortcutText Returns the shortcut as text.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodInitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
public methodMergeMenu Overloaded. Merges another menu item with this menu item.
public methodPerformClick Generates a Click event for the MenuItem, simulating a click by a user.
public methodPerformSelect Generates a Select event for the MenuItem.
public methodToString (inherited from Component) Overridden. See Object.ToString.

Public Events

public eventClick Occurs when the menu item is clicked or selected using a shortcut key or access key defined for the menu item.
public eventDisposed (inherited from Component) Adds an event handler to listen to the Disposed event on the component.
public eventDrawItem Occurs when the OwnerDraw property of a menu item is set to true and a request is made to draw the menu item.
public eventMeasureItem Occurs when the menu needs to know the size of a menu item before drawing it.
public eventPopup Occurs before a menu item's list of menu items is displayed.
public eventSelect Occurs when the user places the cursor over a menu item.

Protected Properties

protected propertyDesignMode (inherited from Component) Gets a value that indicates whether the Component is currently in design mode.
protected propertyEvents (inherited from Component) Gets the list of event handlers that are attached to this Component.

Protected Methods

protected methodCreateMdiListForm Creates a dialog where the user can select mdi child forms to activate.
protected methodDispose (inherited from Component) Overloaded. Releases the resources used by the Component.
protected methodFinalize (inherited from Component) Overridden. See Object.Finalize.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodGetService (inherited from Component) Returns an object that represents a service provided by the Component or by its Container.
protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
protected methodOnClick Raises the Click event.
protected methodOnDrawItem Raises the DrawItem event.
protected methodOnMeasureItem Raises the MeasureItem event.
protected methodOnPopup Raises the Popup event.
protected methodOnSelect Raises the Select event.

See Also

MenuItem Class | Wimark.Controls Namespace