Click or drag to resize

IContextMenuHandlerOnContextMenuCommand Method

Version 107.1.120
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
Assembly:  CefSharp (in CefSharp.dll) Version: 107.1.120.0 (107.1.120.0)
Syntax
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