Click or drag to resize

WebBrowserExtensionsLoadHtml Method (IWebBrowser, String, Boolean)

Version 94.4.20
Loads html as Data Uri See for details If base64Encode is false then html will be Uri encoded.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: (
public static void LoadHtml(
	this IWebBrowser browser,
	string html,
	bool base64Encode = false


Type: CefSharpIWebBrowser
The ChromiumWebBrowser instance this method extends.
Type: SystemString
Html to load as data uri.
base64Encode (Optional)
Type: SystemBoolean
(Optional) if true the html string will be base64 encoded using UTF8 encoding.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IWebBrowser. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also