MenuItem Class |
Namespace: ABB.Robotics.Tps.Windows.Forms
public class MenuItem : Menu
The MenuItem type exposes the following members.
| Name | Description | |
|---|---|---|
| MenuItem |
Initializes a new instance of the MenuItem class.
| |
| MenuItem(String) |
Initializes a new instance of the MenuItem class with a specific text.
|
| Name | Description | |
|---|---|---|
| CanRaiseEvents | Gets a value indicating whether the component can raise an event. (Inherited from Component.) | |
| Checked | Gets or sets a value indicating whether a check mark appears next to the text of the menu item. | |
| Container | Gets the IContainer that contains the Component. (Inherited from Component.) | |
| DesignMode | Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.) | |
| DockToRight | Gets or sets a value indicating whether the menu item is docked to the right side of the MainMenu. | |
| Enabled | Gets or sets a value indicating whether the menu item is enabled. | |
| Events | Gets the list of event handlers that are attached to this Component. (Inherited from Component.) | |
| Image | Gets or sets an image displayed in the menu item when it is not pressed. | |
| ImageSelected | Gets or sets an image displayed in the menu item when it is pressed. | |
| Index | Gets or sets a value indicating the position of the menu item in its parent menu. | |
| IsParent | Gets a value indicating whether this menu contains any menu items. (Inherited from Menu.) | |
| MenuItems | Gets a value indicating the collection of MenuItem objects associated with the menu. (Inherited from Menu.) | |
| Parent | Gets a value indicating the menu that contains this menu item. | |
| Pressed | Gets or sets a value indicating whether the menu is pressed or not. | |
| Site | (Inherited from Component.) | |
| Text | Gets or sets a value indicating the caption of the menu item. | |
| Toggle | Gets or sets a value indicating whether the menu item works as a toggle button. | |
| Width | Gets or sets a value indicating the width of the menu item. |
| Name | Description | |
|---|---|---|
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
| Dispose | Releases all resources used by the Component. (Inherited from Component.) | |
| Dispose(Boolean) | Releases the unmanaged resources used by the Component and optionally releases the managed resources. (Inherited from Component.) | |
| Equals | (Inherited from Object.) | |
| Finalize | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| GetService | (Inherited from Component.) | |
| GetType | Gets the type of the current instance. (Inherited from Object.) | |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
| OnClick |
Overriden. Raises the Click event.
| |
| OnPopUp |
Overriden. Raises the PopUp event.
| |
| PerformClick |
Generates a Click event for the MenuItem, simulating a click by a user.
| |
| ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.) |
| Name | Description | |
|---|---|---|
| Click |
Occurs when the menu item is clicked.
| |
| Disposed | Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.) | |
| PopUp |
Occurs before a menu item's list of menu items is displayed.
|