Click or drag to resize
CfxRunContextMenuEventArgs Class

[This is preliminary documentation and is subject to change.]

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 (1) and execute |Callback| either synchronously or asynchronously with the selected command ID. For default display return false (0). Do not keep references to |Params| or |Model| outside of this callback.
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    ChromiumCfxEventArgs
      Chromium.EventCfxRunContextMenuEventArgs

Namespace: Chromium.Event
Assembly: ChromiumFX (in ChromiumFX.dll)
Syntax
public class CfxRunContextMenuEventArgs : CfxEventArgs

The CfxRunContextMenuEventArgs type exposes the following members.

Properties
  NameDescription
Public propertyBrowser
Get the Browser parameter for the RunContextMenu callback.
Public propertyCallback
Get the Callback parameter for the RunContextMenu callback.
Public propertyFrame
Get the Frame parameter for the RunContextMenu callback.
Public propertyModel
Get the Model parameter for the RunContextMenu callback.
Public propertyParams
Get the Params parameter for the RunContextMenu callback.
Top
Methods
  NameDescription
Public methodSetReturnValue
Set the return value for the RunContextMenu callback. Calling SetReturnValue() more then once per callback or from different event handlers will cause an exception to be thrown.
Public methodToString (Overrides ObjectToString.)
Top
Remarks
See also the original CEF documentation in cef/include/capi/cef_context_menu_handler_capi.h.
See Also