ChromiumWebBrowser Constructor (HtmlString, IRequestContext) |
Version 103.0.120
Initializes a new instance of the
ChromiumWebBrowser class.
**Important** - When using this constructor the
Dock property
will default to
Fill.
Namespace:
CefSharp.WinForms
Assembly:
CefSharp.WinForms (in CefSharp.WinForms.dll) Version: 103.0.120.0 (103.0.120.0)
Syntax public ChromiumWebBrowser(
HtmlString html,
IRequestContext requestContext = null
)
public:
ChromiumWebBrowser(
HtmlString^ html,
IRequestContext^ requestContext = nullptr
)
Parameters
- html
- Type: CefSharp.WebHtmlString
html string to be initially loaded in the browser. - requestContext (Optional)
- Type: CefSharpIRequestContext
(Optional) Request context that will be used for this browser instance, if null the Global
Request Context will be used.
See Also