Click or drag to resize

MenuItem Class

Represents an individual item that is displayed within a MainMenu or ContextMenu.
Inheritance Hierarchy

Namespace:  ABB.Robotics.Tps.Windows.Forms
Assembly:  ABB.Robotics.Tps.Windows.Forms (in ABB.Robotics.Tps.Windows.Forms.dll) Version: 6.5.129.0
Syntax
C#
public class MenuItem : Menu

The MenuItem type exposes the following members.

Constructors
  NameDescription
Public methodMenuItem
Initializes a new instance of the MenuItem class.
Public methodMenuItem(String)
Initializes a new instance of the MenuItem class with a specific text.
Top
Properties
  NameDescription
Protected propertyCanRaiseEvents
Gets a value indicating whether the component can raise an event.
(Inherited from Component.)
Public propertyChecked
Gets or sets a value indicating whether a check mark appears next to the text of the menu item.
Public propertyContainer
Gets the IContainer that contains the Component.
(Inherited from Component.)
Protected propertyDesignMode
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component.)
Public propertyDockToRight
Gets or sets a value indicating whether the menu item is docked to the right side of the MainMenu.
Public propertyEnabled
Gets or sets a value indicating whether the menu item is enabled.
Protected propertyEvents
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.)
Public propertyImage
Gets or sets an image displayed in the menu item when it is not pressed.
Public propertyImageSelected
Gets or sets an image displayed in the menu item when it is pressed.
Public propertyIndex
Gets or sets a value indicating the position of the menu item in its parent menu.
Public propertyIsParent
Gets a value indicating whether this menu contains any menu items.
(Inherited from Menu.)
Public propertyMenuItems
Gets a value indicating the collection of MenuItem objects associated with the menu.
(Inherited from Menu.)
Public propertyParent
Gets a value indicating the menu that contains this menu item.
Public propertyPressed
Gets or sets a value indicating whether the menu is pressed or not.
Public propertySite
Gets or sets the ISite of the Component.
(Inherited from Component.)
Public propertyText
Gets or sets a value indicating the caption of the menu item.
Public propertyToggle
Gets or sets a value indicating whether the menu item works as a toggle button.
Public propertyWidth
Gets or sets a value indicating the width of the menu item.
Top
Methods
  NameDescription
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose
Releases all resources used by the Component.
(Inherited from Component.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the Component and optionally releases the managed resources.
(Inherited from Component.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodGetService
Returns an object that represents a service provided by the Component or by its Container.
(Inherited from Component.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Protected methodOnClick
Overriden. Raises the Click event.
Protected methodOnPopUp
Overriden. Raises the PopUp event.
Public methodPerformClick
Generates a Click event for the MenuItem, simulating a click by a user.
Public methodToString
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.)
Top
Events
  NameDescription
Public eventClick
Occurs when the menu item is clicked.
Public eventDisposed
Occurs when the component is disposed by a call to the Dispose method.
(Inherited from Component.)
Public eventPopUp
Occurs before a menu item's list of menu items is displayed.
Top
Remarks
This class belongs to the pre-defined UI controls of the Tps SDK.
See Also