Click or drag to resize

CefContextMenuHandler Class

Implement this interface to handle context menu events. The methods of this class will be called on the UI thread.
Inheritance Hierarchy
SystemObject
  Internal.Xilium.CefGlueCefContextMenuHandler

Namespace:  Internal.Xilium.CefGlue
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public abstract class CefContextMenuHandler

The CefContextMenuHandler type exposes the following members.

Constructors
  NameDescription
Protected methodCefContextMenuHandler
Initializes a new instance of the CefContextMenuHandler class
Top
Properties
  NameDescription
Protected propertySyncRoot
Top
Methods
  NameDescription
Protected methodDispose
Releases the unmanaged resources used by the CefContextMenuHandler and optionally releases the managed resources
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize (Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnBeforeContextMenu
Called before a context menu is displayed. |params| provides information about the context menu state. |model| initially contains the default context menu. The |model| can be cleared to show no context menu or modified to show a custom menu. Do not keep references to |params| or |model| outside of this callback.
Protected methodOnContextMenuCommand
Called to execute a command selected from the context menu. Return true if the command was handled or false for the default implementation. See cef_menu_id_t for the command ids that have default implementations. All user-defined command ids should be between MENU_ID_USER_FIRST and MENU_ID_USER_LAST. |params| will have the same values as what was passed to OnBeforeContextMenu(). Do not keep a reference to |params| outside of this callback.
Protected methodOnContextMenuDismissed
Called when the context menu is dismissed irregardless of whether the menu was empty or a command was selected.
Protected methodRunContextMenu
Called to allow custom display of the context menu. |params| provides information about the context menu state. |model| contains the context menu model resulting from OnBeforeContextMenu. For custom display return true and execute |callback| either synchronously or asynchronously with the selected command ID. For default display return false. Do not keep references to |params| or |model| outside of this callback.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
See Also