Property InjectCssHandler
- Namespace
- DotNetBrowser.Browser
- Assembly
- DotNetBrowser.dll
InjectCssHandler
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.
IHandler<InjectCssParameters, InjectCssResponse> InjectCssHandler { get; set; }
Property Value
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.
Exceptions
- ObjectDisposedException
The IBrowser has already been disposed.