Click or drag to resize

IBrowserInjectCssHandler Property

Gets or sets a handler that is used when the document element has been created and a custom stylesheet can be injected into the document.

Namespace:  DotNetBrowser.Browser
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.16.0
Syntax
C#
IHandler<InjectCssParameters, InjectCssResponse> InjectCssHandler { get; set; }

Property Value

Type: IHandlerInjectCssParameters, InjectCssResponse
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe IBrowser has already been disposed.
Remarks

Use the Inject(String) method to inject a custom stylesheet into the document.

Use the Proceed method to continue loading without injecting.

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

Important: the engine will be blocked until you return control from the callback.

See Also