Click or drag to resize
IContextMenuHandlerRunContextMenu Method
Version 63.0.0
Called to allow custom display of the context menu. 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 parameters or model outside of this callback.

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 63.0.0.0 (63.0.0.0)
Syntax
bool RunContextMenu(
	IWebBrowser browserControl,
	IBrowser browser,
	IFrame frame,
	IContextMenuParams parameters,
	IMenuModel model,
	IRunContextMenuCallback callback
)

Parameters

browserControl
Type: CefSharpIWebBrowser
the ChromiumWebBrowser control
browser
Type: CefSharpIBrowser
the browser object
frame
Type: CefSharpIFrame
The frame the request is coming from
parameters
Type: CefSharpIContextMenuParams
provides information about the context menu state
model
Type: CefSharpIMenuModel
contains the context menu model resulting from OnBeforeContextMenu
callback
Type: CefSharpIRunContextMenuCallback
the callback to execute for custom display

Return Value

Type: Boolean
For custom display return true and execute callback either synchronously or asynchronously with the selected command ID.
See Also