Click or drag to resize

ContextMenuHandlerOnContextMenuCommand Method

Version 110.0.300
Called to execute a command selected from the context menu. 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.

Namespace:  CefSharp.Handler
Assembly:  CefSharp (in CefSharp.dll) Version: 110.0.300.0 (110.0.300.0)
Syntax
protected virtual bool OnContextMenuCommand(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IFrame frame,
	IContextMenuParams parameters,
	CefMenuCommand commandId,
	CefEventFlags eventFlags
)

Parameters

chromiumWebBrowser
Type: CefSharpIWebBrowser
the ChromiumWebBrowser control
browser
Type: CefSharpIBrowser
the browser object
frame
Type: CefSharpIFrame
The frame the request is coming from
parameters
Type: CefSharpIContextMenuParams
will have the same values as what was passed to
commandId
Type: CefSharpCefMenuCommand
menu command id
eventFlags
Type: CefSharpCefEventFlags
event flags

Return Value

Type: Boolean
Return true if the command was handled or false for the default implementation.
See Also