Click or drag to resize

KryptonContextMenuItem Class

Provide a standard menu item.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    System.ComponentModelComponent
      Internal.ComponentFactory.Krypton.ToolkitKryptonContextMenuItemBase
        Internal.ComponentFactory.Krypton.ToolkitKryptonContextMenuItem

Namespace: Internal.ComponentFactory.Krypton.Toolkit
Assembly: NeoAxis.Core.Editor (in NeoAxis.Core.Editor.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public class KryptonContextMenuItem : KryptonContextMenuItemBase

The KryptonContextMenuItem type exposes the following members.

Constructors
 NameDescription
Public methodKryptonContextMenuItem Initialize a new instance of the KryptonContextMenuItem class.
Public methodKryptonContextMenuItem(String) Initialize a new instance of the KryptonContextMenuItem class.
Public methodKryptonContextMenuItem(String, EventHandler) Initialize a new instance of the KryptonContextMenuItem class.
Public methodKryptonContextMenuItem(String, Image, EventHandler) Initialize a new instance of the KryptonContextMenuItem class.
Public methodKryptonContextMenuItem(String, EventHandler, Keys) Initialize a new instance of the KryptonContextMenuItem class.
Public methodKryptonContextMenuItem(String, Image, EventHandler, Keys) Initialize a new instance of the KryptonContextMenuItem class.
Top
Properties
 NameDescription
Public propertyAutoClose Gets and sets if clicking the menu item automatically closes the context menu.
Protected propertyCanRaiseEventsGets a value indicating whether the component can raise an event.
(Inherited from Component)
Public propertyChecked Gets and sets if the menu item is in the checked state.
Public propertyCheckOnClick Gets and sets if the shortcut display text is shown.
Public propertyCheckState Gets and sets the checked state of the menu item.
Public propertyContainerGets the IContainer that contains the Component.
(Inherited from Component)
Protected propertyDesignModeGets a value that indicates whether the Component is currently in design mode.
(Inherited from Component)
Public propertyEnabled Gets and sets if the menu item is enabled.
Protected propertyEventsGets the list of event handlers that are attached to this Component.
(Inherited from Component)
Public propertyExtraText Gets and sets the standard menu item extra text.
Public propertyImage Gets and sets the standard menu item image.
Public propertyImageTransparentColor Gets and sets the heading image color to make transparent.
Public propertyItems Collection of sub-menu items for display.
Public propertyKryptonCommand Gets and sets the associated KryptonCommand.
Public propertyLargeKryptonCommandImage Gets and sets if the large image is used from the attached KryptonCommand.
Public propertyShortcutKeyDisplayString Gets and sets the display text to use in preference to the shortcut key setting.
Public propertyShortcutKeys Gets and sets the shortcut key combination associated with the menu item.
Public propertyShowShortcutKeys Gets and sets if the shortcut display text is shown.
Public propertySiteGets or sets the ISite of the Component.
(Inherited from Component)
Public propertySplitSubMenu Gets and sets whether the menu item toggles checked state when clicked.
Public propertyStateChecked Gets access to the menu item normal appearance values.
Public propertyStateDisabled Gets access to the menu item disabled appearance values.
Public propertyStateHighlight Gets access to the menu item highlight appearance values.
Public propertyStateNormal Gets access to the menu item normal appearance values.
Public propertyTag Gets and sets user-defined data associated with the object.
(Inherited from KryptonContextMenuItemBase)
Public propertyText Gets and sets the standard menu item text.
Public propertyVisible Gets and sets if the item is visible in the context menu.
(Inherited from KryptonContextMenuItemBase)
Top
Methods
 NameDescription
Public methodDisposeReleases 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 methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeReleases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component)
Public methodGenerateView Returns a view appropriate for this item based on the object it is inside.
(Overrides KryptonContextMenuItemBaseGenerateView(IContextMenuProvider, Object, ViewLayoutStack, Boolean, Boolean))
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Obsolete
Protected methodGetServiceReturns an object that represents a service provided by the Component or by its Container.
(Inherited from Component)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Obsolete
Protected methodMemberwiseCloneCreates 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 methodOnCheckedChanged Raises the CheckedChanged event.
Protected methodOnCheckStateChanged Raises the CheckStateChanged event.
Protected methodOnClick Raises the Click event.
Protected methodOnPropertyChanged Raises the PropertyChanged event.
(Inherited from KryptonContextMenuItemBase)
Public methodPerformClick Generates a Click event for the component.
Public methodProcessShortcut Test for the provided shortcut and perform relevant action if a match is found.
(Overrides KryptonContextMenuItemBaseProcessShortcut(Keys))
Public methodToString Returns a description of the instance.
(Overrides ComponentToString)
Top
Events
 NameDescription
Public eventCheckedChanged Occurs when the menu item is clicked.
Public eventCheckStateChanged Occurs when the menu item is clicked.
Public eventClick Occurs when the menu item is clicked.
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method.
(Inherited from Component)
Public eventPropertyChanged Occurs when a property has changed value.
(Inherited from KryptonContextMenuItemBase)
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also