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)); }
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; } } }
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; } } } }
internal HtmlWindow(HtmlShimManager shimManager, System.Windows.Forms.UnsafeNativeMethods.IHTMLWindow2 win) { this.htmlWindow2 = win; this.shimManager = shimManager; }