Click or drag to resize

KryptonContextMenu Class

Represents a shortcut menu with Krypton palette styling.
Inheritance Hierarchy

Namespace:  Internal.ComponentFactory.Krypton.Toolkit
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2023.1.2.0 (2023.1.2.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 propertyCanRaiseEvents
Gets a value indicating whether the component can raise an event.
(Inherited from Component.)
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 propertyEnabled
Gets and sets if the context menu is enabled.
Protected propertyEvents
Gets 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 propertySite
Gets 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 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)
Clean up any resources being used.
(Overrides ComponentDispose(Boolean).)
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 the default hash function.
(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 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 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 eventClosed
Occurs when the context menu has been closed.
Public eventClosing
Occurs when the context menu is about to close.
Public eventDisposed
Occurs 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
See Also