Click or drag to resize

IBrowserShowContextMenuHandler Property

Gets or sets a handler that is used when the browser should show a context menu.

Namespace:  DotNetBrowser.Browser
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.19.0
IHandler<ShowContextMenuParameters, ShowContextMenuResponse> ShowContextMenuHandler { get; set; }

Property Value

Type: IHandlerShowContextMenuParameters, ShowContextMenuResponse
ObjectDisposedExceptionThe IBrowser has already been disposed.

The passed ShowContextMenuParameters object contains information about the context menu to show.

Use the Close method to close the context menu without choice.

Use the Select(ContextMenuItem) method to choose the context menu item.

If an exception occurs inside the handler implementation, the default behavior will be applied - the method Close will be used.

See Also