Click or drag to resize

ContextMenuHandler.RunContextMenu Method

Version 109.1.110
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.Handler
Assembly:  CefSharp (in CefSharp.dll) Version: 109.1.110.0 (109.1.110.0)
Syntax
protected virtual bool RunContextMenu(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IFrame frame,
	IContextMenuParams parameters,
	IMenuModel model,
	IRunContextMenuCallback callback
)

Parameters

chromiumWebBrowser
Type: CefSharp.IWebBrowser
the ChromiumWebBrowser control
browser
Type: CefSharp.IBrowser
the browser object
frame
Type: CefSharp.IFrame
The frame the request is coming from
parameters
Type: CefSharp.IContextMenuParams
provides information about the context menu state
model
Type: CefSharp.IMenuModel
contains the context menu model resulting from OnBeforeContextMenu
callback
Type: CefSharp.IRunContextMenuCallback
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