Example #1
0
 /// <summary>
 /// Loads HTML input from a string
 /// </summary>
 /// <param name="window"></param>
 /// <param name="html">HTML of the page to be loaded</param>
 /// <param name="baseUrl">Base Url given to the loaded page</param>
 public static SciterWindow LoadHtml(this SciterWindow window, Func <string> html, string baseUrl = null)
 {
     window?.LoadHtmlInternal(html: html?.Invoke(), baseUrl: baseUrl);
     return(window);
 }
Example #2
0
 /// <summary>
 /// Loads HTML input from a string
 /// </summary>
 /// <param name="window"></param>
 /// <param name="html">HTML of the page to be loaded</param>
 /// <param name="baseUrl">Base Url given to the loaded page</param>
 public static SciterWindow LoadHtml(this SciterWindow window, string html, string baseUrl = null)
 {
     window?.LoadHtmlInternal(html: html, baseUrl: baseUrl);
     return(window);
 }