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.15.0
Syntax
C#
IHandler<ShowContextMenuParameters, ShowContextMenuResponse> ShowContextMenuHandler { get; set; }

Property Value

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

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