Version

IGMenuItem Class Members

The following tables list the members exposed by IGMenuItem.

Public Constructors
 NameDescription
Public ConstructorIGMenuItem ConstructorOverloaded.   
Public Properties
 NameDescription
Public PropertyBarBreakGets or sets a value indicating whether the System.Windows.Forms.MenuItem is placed on a new line (for a menu item added to a System.Windows.Forms.MainMenu object) or in a new column (for a submenu item or menu item displayed in a System.Windows.Forms.ContextMenu). (Inherited from System.Windows.Forms.MenuItem)
Public PropertyBreakGets or sets a value indicating whether the item is placed on a new line (for a menu item added to a System.Windows.Forms.MainMenu object) or in a new column (for a menu item or submenu item displayed in a System.Windows.Forms.ContextMenu). (Inherited from System.Windows.Forms.MenuItem)
Public PropertyCheckedGets or sets a value indicating whether a check mark appears next to the text of the menu item. (Inherited from System.Windows.Forms.MenuItem)
Public PropertyContainer (Inherited from System.ComponentModel.Component)
Public PropertyDefaultItemGets or sets a value indicating whether the menu item is the default menu item. (Inherited from System.Windows.Forms.MenuItem)
Public PropertyEnabledGets or sets a value indicating whether the menu item is enabled. (Inherited from System.Windows.Forms.MenuItem)
Public PropertyHandleGets a value representing the window handle for the menu. (Inherited from System.Windows.Forms.Menu)
Public PropertyImageReturns or sets the image displayed in the menu item.  
Public PropertyIndexGets or sets a value indicating the position of the menu item in its parent menu. (Inherited from System.Windows.Forms.MenuItem)
Public PropertyIsParentGets a value indicating whether the menu item contains child menu items. (Inherited from System.Windows.Forms.MenuItem)
Public PropertyMdiListGets 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. (Inherited from System.Windows.Forms.MenuItem)
Public PropertyMdiListItemGets a value indicating the System.Windows.Forms.MenuItem that is used to display a list of multiple document interface (MDI) child forms. (Inherited from System.Windows.Forms.Menu)
Public PropertyMenuItemsGets a value indicating the collection of System.Windows.Forms.MenuItem objects associated with the menu. (Inherited from System.Windows.Forms.Menu)
Public PropertyMergeOrderGets or sets a value indicating the relative position of the menu item when it is merged with another. (Inherited from System.Windows.Forms.MenuItem)
Public PropertyMergeTypeGets or sets a value indicating the behavior of this menu item when its menu is merged with another. (Inherited from System.Windows.Forms.MenuItem)
Public PropertyMnemonicGets a value indicating the mnemonic character that is associated with this menu item. (Inherited from System.Windows.Forms.MenuItem)
Public PropertyNameGets or sets the name of the System.Windows.Forms.Menu. (Inherited from System.Windows.Forms.Menu)
Public PropertyOwnerDrawGets or sets a value indicating whether the code that you provide draws the menu item or Windows draws the menu item. (Inherited from System.Windows.Forms.MenuItem)
Public PropertyParentGets a value indicating the menu that contains this menu item. (Inherited from System.Windows.Forms.MenuItem)
Public PropertyRadioCheckGets or sets a value indicating whether the System.Windows.Forms.MenuItem, if checked, displays a radio-button instead of a check mark. (Inherited from System.Windows.Forms.MenuItem)
Public PropertyShortcutGets or sets a value indicating the shortcut key associated with the menu item. (Inherited from System.Windows.Forms.MenuItem)
Public PropertyShowShortcutGets or sets a value indicating whether the shortcut key that is associated with the menu item is displayed next to the menu item caption. (Inherited from System.Windows.Forms.MenuItem)
Public PropertySite (Inherited from System.ComponentModel.Component)
Public PropertyTagGets or sets user-defined data associated with the control. (Inherited from System.Windows.Forms.Menu)
Public PropertyTextGets or sets a value indicating the caption of the menu item. (Inherited from System.Windows.Forms.MenuItem)
Public PropertyVisibleGets or sets a value indicating whether the menu item is visible. (Inherited from System.Windows.Forms.MenuItem)
Protected Properties
 NameDescription
Protected PropertyArrowAreaWidthReturns the width needed for the sub items arrow.  
Protected PropertyCanRaiseEvents (Inherited from System.ComponentModel.Component)
Protected PropertyDesignMode (Inherited from System.ComponentModel.Component)
Protected PropertyEvents (Inherited from System.ComponentModel.Component)
Protected PropertyImageAreaPaddingReturns the amount of padding around the image.  
Protected PropertyIsRightToLeftIndicates if the menu is oriented from right to left.  
Protected PropertyIsSeparatorIndicates if the menu item is a separator  
Protected PropertyMenuIDGets a value indicating the Windows identifier for this menu item. (Inherited from System.Windows.Forms.MenuItem)
Protected PropertyPreTextSpaceReturns the amount of space before the text.  
Protected PropertyRequiresArrowAreaIndicates if the menu item will display an arrow indicating it contains sub items  
Protected PropertySeparatorSizeReturns the height required for the separator tool  
Protected PropertyShortcutStringReturns the string to render for the shortcut associated with the menu item  
Protected PropertyShowShortcutResolvedReturns a value indicating whether a shortcut should be displayed  
Protected PropertyStyleResolvedReturns the style of menu being rendered  
Public Methods
 NameDescription
Public MethodCloneMenuOverloaded. Overridden. Invoked when a copy of the menu item should be created.  
Public MethodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from System.MarshalByRefObject)
Public MethodDisposeOverloaded. Disposes of the resources (other than memory) used by the System.Windows.Forms.MenuItem. (Inherited from System.Windows.Forms.MenuItem)
Public MethodFindMenuItemGets the System.Windows.Forms.MenuItem that contains the value specified. (Inherited from System.Windows.Forms.Menu)
Public MethodGetContextMenuGets the System.Windows.Forms.ContextMenu that contains this menu. (Inherited from System.Windows.Forms.Menu)
Public MethodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodGetMainMenuGets the System.Windows.Forms.MainMenu that contains this menu. (Inherited from System.Windows.Forms.Menu)
Public MethodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodMergeMenuOverloaded. Merges this System.Windows.Forms.MenuItem with another System.Windows.Forms.MenuItem and returns the resulting merged System.Windows.Forms.MenuItem. (Inherited from System.Windows.Forms.MenuItem)
Public MethodPerformClickGenerates a System.Windows.Forms.Control.Click event for the System.Windows.Forms.MenuItem, simulating a click by a user. (Inherited from System.Windows.Forms.MenuItem)
Public MethodPerformSelectRaises the System.Windows.Forms.MenuItem.Select event for this menu item. (Inherited from System.Windows.Forms.MenuItem)
Public MethodToStringReturns a string that represents the System.Windows.Forms.MenuItem. (Inherited from System.Windows.Forms.MenuItem)
Protected Methods
 NameDescription
Protected MethodCreateMenuHandleCreates a new handle to the System.Windows.Forms.Menu. (Inherited from System.Windows.Forms.Menu)
Protected Methodstatic (Shared in Visual Basic)DrawMenuGlyphDraws the specified menu glyph at the specified coordinates  
Protected MethodDrawMenuItemInvoked from the OnDrawItem to render the menu item.  
Protected MethodDrawTextUsed to render the text for the menu item  
Protected MethodFinalize (Inherited from System.ComponentModel.Component)
Protected MethodFindMergePositionReturns the position at which a menu item should be inserted into the menu. (Inherited from System.Windows.Forms.Menu)
Protected MethodGetImageReturns the image displayed in the menu.  
Protected MethodGetImageAreaSizeReturn the size of the area that contains the menu image  
Protected MethodGetImageSizeReturns the size of the images displayed  
Protected MethodGetItemSizeInvoked from the OnMeasureItem to determine the size of the owner drawn menu item  
Protected MethodGetService (Inherited from System.ComponentModel.Component)
Protected MethodGetStringFormatReturns the System.Drawing.StringFormat object used to render the string  
Protected MethodIsBottomItemIndicates if the specified index is the end of a group of menu items.  
Protected MethodMemberwiseCloneOverloaded. Creates a shallow copy of the current System.MarshalByRefObject object. (Inherited from System.MarshalByRefObject)
Protected MethodOnClickRaises the System.Windows.Forms.MenuItem.Click event. (Inherited from System.Windows.Forms.MenuItem)
Protected MethodOnDrawItemOverridden. Invoked when the owner drawn menu is to be rendered.  
Protected MethodOnInitMenuPopupRaises the System.Windows.Forms.MenuItem.Popup event. (Inherited from System.Windows.Forms.MenuItem)
Protected MethodOnMeasureItemOverridden. Invoked when the size of the menu item should be returned for an owner drawn menu.  
Protected MethodOnPopupRaises the System.Windows.Forms.MenuItem.Popup event. (Inherited from System.Windows.Forms.MenuItem)
Protected MethodOnSelectRaises the System.Windows.Forms.MenuItem.Select event. (Inherited from System.Windows.Forms.MenuItem)
Public Events
 NameDescription
Public EventClickOccurs when the menu item is clicked or selected using a shortcut key or access key defined for the menu item. (Inherited from System.Windows.Forms.MenuItem)
Public EventDisposed (Inherited from System.ComponentModel.Component)
Public EventDrawItemOccurs when the System.Windows.Forms.MenuItem.OwnerDraw property of a menu item is set to true and a request is made to draw the menu item. (Inherited from System.Windows.Forms.MenuItem)
Public EventMeasureItemOccurs when the menu needs to know the size of a menu item before drawing it. (Inherited from System.Windows.Forms.MenuItem)
Public EventPopupOccurs before a menu item's list of menu items is displayed. (Inherited from System.Windows.Forms.MenuItem)
Public EventSelectOccurs when the user places the pointer over a menu item. (Inherited from System.Windows.Forms.MenuItem)
See Also