MenuItem Methods

MenuItem Methods

 

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

NameDescription
System_CAPS_pubmethodCloneMenu()

Creates a copy of the current MenuItem.

System_CAPS_protmethodCloneMenu(Menu)

Copies the Menu that is passed as a parameter to the current Menu.(Inherited from Menu.)

System_CAPS_protmethodCloneMenu(MenuItem)

Creates a copy of the specified MenuItem.

System_CAPS_protmethodCreateMenuHandle()

Creates a new handle to the Menu.(Inherited from Menu.)

System_CAPS_pubmethodCreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodDispose()

Releases all resources used by the Component.(Inherited from Component.)

System_CAPS_protmethodDispose(Boolean)

Disposes of the resources (other than memory) used by the MenuItem.(Overrides Menu.Dispose(Boolean).)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.(Inherited from Component.)

System_CAPS_pubmethodFindMenuItem(Int32, IntPtr)

Gets the MenuItem that contains the value specified. (Inherited from Menu.)

System_CAPS_protmethodFindMergePosition(Int32)

Returns the position at which a menu item should be inserted into the menu.(Inherited from Menu.)

System_CAPS_pubmethodGetContextMenu()

Gets the ContextMenu that contains this menu.(Inherited from Menu.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetMainMenu()

Gets the MainMenu that contains this menu.(Inherited from Menu.)

System_CAPS_protmethodGetService(Type)

Returns an object that represents a service provided by the Component or by its Container.(Inherited from Component.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodMergeMenu()

Merges this MenuItem with another MenuItem and returns the resulting merged MenuItem.

System_CAPS_pubmethodMergeMenu(Menu)

Merges the MenuItem objects of one menu with the current menu.(Inherited from Menu.)

System_CAPS_pubmethodMergeMenu(MenuItem)

Merges another menu item with this menu item.

System_CAPS_protmethodOnClick(EventArgs)

Raises the Click event.

System_CAPS_protmethodOnDrawItem(DrawItemEventArgs)

Raises the DrawItem event.

System_CAPS_protmethodOnInitMenuPopup(EventArgs)

This API supports the product infrastructure and is not intended to be used directly from your code. Raises the Popup event.

System_CAPS_protmethodOnMeasureItem(MeasureItemEventArgs)

Raises the MeasureItem event.

System_CAPS_protmethodOnPopup(EventArgs)

Raises the Popup event.

System_CAPS_protmethodOnSelect(EventArgs)

Raises the Select event.

System_CAPS_pubmethodPerformClick()

Generates a Click event for the MenuItem, simulating a click by a user.

System_CAPS_pubmethodPerformSelect()

Raises the Select event for this menu item.

System_CAPS_protmethodProcessCmdKey(Message, Keys)

Processes a command key.(Inherited from Menu.)

System_CAPS_pubmethodToString()

This API supports the product infrastructure and is not intended to be used directly from your code. Returns a string that represents the MenuItem.(Overrides Menu.ToString().)

Return to top
Show:
© 2016 Microsoft