Click or drag to resize

IDialogsSelectColorHandler Property

Gets or sets a handler that is used when the user clicks an <input type='color'> HTML5 element.

Namespace:  DotNetBrowser.Browser.Dialogs
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.11.0
Syntax
C#
IHandler<SelectColorParameters, SelectColorResponse> SelectColorHandler { get; set; }

Property Value

Type: IHandlerSelectColorParameters, SelectColorResponse
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe IBrowser has already been disposed.
ConnectionClosedExceptionThe connection to the Chromium engine is closed.
Remarks

You can use this handler to display your own color chooser dialog or set the required color programmatically without displaying any dialogs.

Use the SelectColor(Color) method to provide the selected color to the browser.

Use the Cancel method to cancel the dialog.

If the handler throws an exception, the Cancel method will be invoked.

See Also