Exemple #1
0
 public HtmlWindow OpenNew(string urlString, string windowOptions)
 {
     System.Windows.Forms.UnsafeNativeMethods.IHTMLWindow2 win = this.NativeHtmlWindow.Open(urlString, "_blank", windowOptions, true);
     if (win == null)
     {
         return(null);
     }
     return(new HtmlWindow(this.ShimManager, win));
 }
Exemple #2
0
 public HtmlWindow Open(string urlString, string target, string windowOptions, bool replaceEntry)
 {
     System.Windows.Forms.UnsafeNativeMethods.IHTMLWindow2 win = this.NativeHtmlWindow.Open(urlString, target, windowOptions, replaceEntry);
     if (win == null)
     {
         return(null);
     }
     return(new HtmlWindow(this.ShimManager, win));
 }
 internal HtmlDocumentShim(HtmlDocument htmlDocument)
 {
     this.htmlDocument = htmlDocument;
     if (this.htmlDocument != null)
     {
         HtmlWindow window = htmlDocument.Window;
         if (window != null)
         {
             this.associatedWindow = window.NativeHtmlWindow;
         }
     }
 }
Exemple #4
0
 public HtmlElementShim(HtmlElement element)
 {
     this.htmlElement = element;
     if (this.htmlElement != null)
     {
         HtmlDocument document = this.htmlElement.Document;
         if (document != null)
         {
             HtmlWindow window = document.Window;
             if (window != null)
             {
                 this.associatedWindow = window.NativeHtmlWindow;
             }
         }
     }
 }
 public HtmlElementShim(HtmlElement element)
 {
     this.htmlElement = element;
     if (this.htmlElement != null)
     {
         HtmlDocument document = this.htmlElement.Document;
         if (document != null)
         {
             HtmlWindow window = document.Window;
             if (window != null)
             {
                 this.associatedWindow = window.NativeHtmlWindow;
             }
         }
     }
 }
Exemple #6
0
 internal HtmlWindow(HtmlShimManager shimManager, System.Windows.Forms.UnsafeNativeMethods.IHTMLWindow2 win)
 {
     this.htmlWindow2 = win;
     this.shimManager = shimManager;
 }
 internal HtmlWindow(HtmlShimManager shimManager, System.Windows.Forms.UnsafeNativeMethods.IHTMLWindow2 win)
 {
     this.htmlWindow2 = win;
     this.shimManager = shimManager;
 }
 internal HtmlDocumentShim(HtmlDocument htmlDocument)
 {
     this.htmlDocument = htmlDocument;
     if (this.htmlDocument != null)
     {
         HtmlWindow window = htmlDocument.Window;
         if (window != null)
         {
             this.associatedWindow = window.NativeHtmlWindow;
         }
     }
 }