Пример #1
0
 /// <summary>
 /// Loading method
 /// HtmlDocument to create a HTML string
 /// </summary>
 /// <param name="html">HTML string</param>
 /// <returns></returns>
 public HtmlDocument LoadHtml(string html)
 {
     // Creating an object using a mshtml.HTMLDocument
     var doc = new HTMLDocument() as IHTMLDocument2;
     doc.write(new object[] { html });
     Load(doc);
     return this;
 }
Пример #2
0
        /// <summary>
        /// Loading method
        /// HtmlDocument to create a HTML string
        /// </summary>
        /// <param name="html">HTML string</param>
        /// <returns></returns>
        public HtmlDocument LoadHtml(string html)
        {
            // Creating an object using a mshtml.HTMLDocument
            var doc = new HTMLDocument() as IHTMLDocument2;

            doc.write(new object[] { html });
            Load(doc);
            return(this);
        }