Click or drag to resize

KryptonContextMenu Class

Represents a shortcut menu with Krypton palette styling.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    System.ComponentModelComponent
      Internal.ComponentFactory.Krypton.ToolkitKryptonContextMenu

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 KryptonContextMenu : Component

The KryptonContextMenu type exposes the following members.

Constructors
 NameDescription
Public methodKryptonContextMenu Initialize a new instance of the KryptonContextMenu class.
Top
Properties
 NameDescription
Public propertyCaller Gets a reference to the caller that caused the context menu to be shown.
Protected propertyCanRaiseEventsGets a value indicating whether the component can raise an event.
(Inherited from Component)
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 context menu is enabled.
Protected propertyEventsGets the list of event handlers that are attached to this Component.
(Inherited from Component)
Public propertyImages Gets access to the image value overrides.
Public propertyItems Collection of menu items for display.
Public propertyPalette Gets and sets the custom palette implementation.
Public propertyPaletteMode Gets or sets the palette to be applied.
Public propertySiteGets or sets the ISite of the Component.
(Inherited from Component)
Public propertyStateChecked Gets access to the context menu normal appearance values.
Public propertyStateCommon Gets access to the common context menu appearance entries that other states can override.
Public propertyStateDisabled Gets access to the context menu disabled appearance values.
Public propertyStateHighlight Gets access to the context menu highlight appearance values.
Public propertyStateNormal Gets access to the context menu normal appearance values.
Public propertyTag Gets and sets user-defined data associated with the object.
Top
Methods
 NameDescription
Public methodClose Close any showing context menu.
Public methodClose(ToolStripDropDownCloseReason) Close any showing context menu.
Protected methodCreateContextMenu Create a new visual context menu for showing the defined items.
Public methodDisposeReleases all resources used by the Component.
(Inherited from Component)
Protected methodDispose(Boolean) Clean up any resources being used.
(Overrides ComponentDispose(Boolean))
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 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 methodOnClosed Raises the Closed event.
Protected methodOnClosing Raises the Closing event.
Protected methodOnOpened Raises the Opened event.
Protected methodOnOpening Raises the Opening event.
Public methodPerformOpening 
Public methodProcessShortcut Test for the provided shortcut and perform relevant action if a match is found.
Public methodResetPalette Resets the Palette property to its default value.
Public methodResetPaletteMode Resets the PaletteMode property to its default value.
Public methodShow(Object) Show the context menu at the current mouse location.
Public methodShow(Object, Point) Show the context menu relative to the provided screen point.
Public methodShow(Object, Rectangle) Show the context menu relative to the provided screen rectangle.
Public methodShow(Object, KryptonContextMenuPositionH, KryptonContextMenuPositionV) Show the context menu relative to the current mouse location.
Public methodShow(Object, Point, KryptonContextMenuPositionH, KryptonContextMenuPositionV) Show the context menu relative to the provided screen point.
Public methodShow(Object, Rectangle, KryptonContextMenuPositionH, KryptonContextMenuPositionV) Show the context menu relative to the provided screen rectangle.
Public methodShow(Object, Rectangle, KryptonContextMenuPositionH, KryptonContextMenuPositionV, Boolean, Boolean) Show the context menu relative to the provided screen rectangle.
Public methodToStringReturns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component)
Top
Events
 NameDescription
Public eventClosed Occurs when the context menu has been closed.
Public eventClosing Occurs when the context menu is about to close.
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method.
(Inherited from Component)
Public eventOpened Occurs when the context menu is opended.
Public eventOpening Occurs when the context menu is opening.
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