WebBrowserExtensionsLoadHtml(IChromiumWebBrowserBase, String, Boolean) Method |
Version 130.1.90
Loads html as Data Uri See https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs for details If
base64Encode is false then html will be Uri encoded.
Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax public static void LoadHtml(
this IChromiumWebBrowserBase browser,
string html,
bool base64Encode = false
)
public:
[ExtensionAttribute]
static void LoadHtml(
IChromiumWebBrowserBase^ browser,
String^ html,
bool base64Encode = false
)
Parameters
- browser IChromiumWebBrowserBase
- The ChromiumWebBrowser instance this method extends.
- html String
- Html to load as data uri.
- base64Encode Boolean (Optional)
- (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
IChromiumWebBrowserBase. 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