Method NavigateToString
NavigateToString(string, string?)
Sets the displayed page source to the contents of the given string.
public virtual void NavigateToString(string html, string? baseUrl = null)
Parameters
html
stringThe string that contains the HTML data to display. If this parameter is null, WebBrowser navigates to a blank document. If value of this parameter is not in valid HTML format, it will be displayed as plain text.
baseUrl
stringURL assigned to the HTML data, to be used to resolve relative paths, for instance.
Remarks
When using the IE backend you must wait for the current page to finish loading before calling this method. The baseURL parameter is not used in the IE and and Edge backends.