5 instantiations of HtmlDocument
System.Windows.Forms (5)
System\Windows\Forms\ActiveX\Control.AxSourcingSite.cs (1)
46return new HtmlDocument(_shimManager, document);
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (1)
489return hr.Succeeded ? new HtmlDocument(ShimManager, htmlDoc) : null;
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (1)
122return hr.Succeeded ? new HtmlDocument(_shimManager, htmlDocument) : null;
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (1)
82return hr.Succeeded ? new HtmlDocument(ShimManager, htmlDoc) : null;
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
243return new HtmlDocument(ShimManager, htmlDoc);
273 references to HtmlDocument
System.Windows.Forms (34)
System\Windows\Forms\ActiveX\Control.AxSourcingSite.cs (1)
37if (service == typeof(HtmlDocument))
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (6)
475public HtmlDocument? OpenNew(bool replaceInHistory) 678public static unsafe bool operator ==(HtmlDocument? left, HtmlDocument? right) 694public static bool operator !=(HtmlDocument? left, HtmlDocument? right) => !(left == right); 698public override bool Equals(object? obj) => this == (HtmlDocument?)obj;
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.HTMLDocumentEvents2.cs (2)
18private readonly HtmlDocument _parent; 20public HTMLDocumentEvents2(HtmlDocument htmlDocument)
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.HtmlDocumentShim.cs (3)
27private HtmlDocument _htmlDocument; 29internal HtmlDocumentShim(HtmlDocument htmlDocument) 45internal HtmlDocument Document => _htmlDocument;
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (1)
109public HtmlDocument? Document
System\Windows\Forms\Controls\WebBrowser\HtmlElement.HtmlElementShim.cs (1)
55HtmlDocument? doc = _htmlElement.Document;
System\Windows\Forms\Controls\WebBrowser\HtmlShimManager.cs (14)
19private Dictionary<HtmlDocument, HtmlDocument.HtmlDocumentShim>? _htmlDocumentShims; 26/// Adds a <see cref="HtmlDocument.HtmlDocumentShim"/> to list of shims to manage. 29public void AddDocumentShim(HtmlDocument doc) 31HtmlDocument.HtmlDocumentShim? shim = null; 36shim = new HtmlDocument.HtmlDocumentShim(doc); 41shim = new HtmlDocument.HtmlDocumentShim(doc); 101internal HtmlDocument.HtmlDocumentShim? GetDocumentShim(HtmlDocument document) 108if (_htmlDocumentShims.TryGetValue(document, out HtmlDocument.HtmlDocumentShim? value)) 173HtmlDocument.HtmlDocumentShim[] shims = new HtmlDocument.HtmlDocumentShim[_htmlDocumentShims.Count]; 176foreach (HtmlDocument.HtmlDocumentShim shim in shims) 234foreach (HtmlDocument.HtmlDocumentShim shim in _htmlDocumentShims.Values)
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (1)
69public HtmlDocument? Document
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (4)
218public HtmlDocument? Document 263HtmlDocument? htmlDocument = Document; 348HtmlDocument? htmlDocument = Document; 380HtmlDocument? htmlDocument = Document;
System\Windows\Forms\Controls\WebBrowser\WebBrowser.WebBrowserEvent.cs (1)
80HtmlDocument? htmlDocument = _parent.Document;
System.Windows.Forms.Tests (239)
System\Windows\Forms\HtmlDocumentTests.cs (104)
25HtmlDocument document = await GetDocument(control, Html); 57HtmlDocument document = await GetDocument(control, html); 89HtmlDocument document = await GetDocument(control, Html); 113HtmlDocument document = await GetDocument(control, Html); 143HtmlDocument document = await GetDocument(control, Html); 163HtmlDocument document = await GetDocument(control, Html); 183HtmlDocument document = await GetDocument(control, Html); 200HtmlDocument document = await GetDocument(control, Html); 217HtmlDocument document = await GetDocument(control, Html); 242HtmlDocument document = await GetDocument(control, Html); 274HtmlDocument document = await GetDocument(control, html); 306HtmlDocument document = await GetDocument(control, Html); 336HtmlDocument document = await GetDocument(control, Html); 366HtmlDocument document = await GetDocument(control, Html); 383HtmlDocument document = await GetDocument(control, Html); 400HtmlDocument document = await GetDocument(control, Html); 425HtmlDocument document = await GetDocument(control, Html); 442HtmlDocument document = await GetDocument(control, Html); 477HtmlDocument document = await GetDocument(control, Html); 492HtmlDocument document = await GetDocument(control, Html); 507HtmlDocument document = await GetDocument(control, Html); 529HtmlDocument document = await GetDocument(control, Html); 544HtmlDocument document = await GetDocument(control, Html); 560HtmlDocument document = await GetDocument(control, Html); 582HtmlDocument document = await GetDocument(control, Html); 597HtmlDocument document = await GetDocument(control, Html); 611HtmlDocument document = await GetDocument(control, Html); 635HtmlDocument document = await GetDocument(control, Html); 669HtmlDocument document = await GetDocument(control, Html); 683HtmlDocument document = await GetDocument(control, Html); 698HtmlDocument document = await GetDocument(control, Html); 722HtmlDocument document = await GetDocument(control, Html); 754HtmlDocument document = await GetDocument(control, html); 786HtmlDocument document = await GetDocument(control, Html); 808HtmlDocument document = await GetDocument(control, Html); 839HtmlDocument document = await GetDocument(control, Html); 859HtmlDocument document = await GetDocument(control, Html); 875HtmlDocument document = await GetDocument(control, Html); 895HtmlDocument document = await GetDocument(control, Html); 911HtmlDocument document = await GetDocument(control, Html); 943HtmlDocument document = await GetDocument(control, html); 975HtmlDocument document = await GetDocument(control, Html); 997HtmlDocument document = await GetDocument(control, Html); 1027HtmlDocument document = await GetDocument(control, Html); 1047HtmlDocument document = await GetDocument(control, Html); 1063HtmlDocument document = await GetDocument(control, Html); 1088HtmlDocument document = await GetDocument(control, html); 1111HtmlDocument document = await GetDocument(control, html); 1135HtmlDocument document = await GetDocument(control, Html); 1172HtmlDocument document = await GetDocument(control, Html); 1186HtmlDocument document = await GetDocument(control, Html); 1201HtmlDocument document = await GetDocument(control, Html); 1223HtmlDocument document = await GetDocument(control, Html); 1260HtmlDocument document = control.Document; 1274HtmlDocument document = await GetDocument(control, Html); 1306HtmlDocument document = await GetDocument(control, html); 1338HtmlDocument document = await GetDocument(control, Html); 1360HtmlDocument document = await GetDocument(control, Html); 1390HtmlDocument document = await GetDocument(control, Html); 1409HtmlDocument document = await GetDocument(control, Html); 1471HtmlDocument document = await GetDocument(control, Html); 1509HtmlDocument document = await GetDocument(control, Html); 1527HtmlDocument document = await GetDocument(control, Html); 1547HtmlDocument document = await GetDocument(control, Html); 1564HtmlDocument document = await GetDocument(control, Html); 1580HtmlDocument document = await GetDocument(control, Html); 1608HtmlDocument document = await GetDocument(control, Html); 1625HtmlDocument document = await GetDocument(control, Html); 1642HtmlDocument document = await GetDocument(control, Html); 1643HtmlDocument newDocument = document.OpenNew(false); 1665HtmlDocument document = await GetDocument(control, Html); 1683HtmlDocument document = await GetDocument(control, Html); 1698HtmlDocument document = await GetDocument(control, Html); 1717HtmlDocument document = await GetDocument(control, Html); 1735HtmlDocument document = await GetDocument(control, Html); 1749HtmlDocument document = await GetDocument(control, Html); 1766HtmlDocument document = await GetDocument(control, Html); 1791HtmlDocument document = await GetDocument(control, Html); 1811HtmlDocument document = await GetDocument(control, Html); 1825HtmlDocument document = await GetDocument(control, Html); 1826HtmlDocument newDocument = document.OpenNew(false); 1862HtmlDocument document = await GetDocument(control, Html); 1882HtmlDocument document = await GetDocument(control, Html); 1909HtmlDocument document = await GetDocument(control, Html); 1926HtmlDocument document = await GetDocument(control, Html); 1943HtmlDocument document = await GetDocument(control, Html); 1944HtmlDocument newDocument = document.OpenNew(replaceInHistory); 1961HtmlDocument document = await GetDocument(control, Html); 1962HtmlDocument newDocument = document.OpenNew(false); 1968Assert.Null((HtmlDocument)null); 1981HtmlDocument document = await GetDocument(control, Html); 1982HtmlDocument newDocument = document.OpenNew(false); 1988Assert.Null((HtmlDocument)null); 2002HtmlDocument document = await GetDocument(control, Html); 2040HtmlDocument document = await GetDocument(control, Html); 2078HtmlDocument document = await GetDocument(control, Html); 2116HtmlDocument document = await GetDocument(control, Html); 2154HtmlDocument document = await GetDocument(control, Html); 2192HtmlDocument document = await GetDocument(control, Html); 2230HtmlDocument document = await GetDocument(control, Html); 2268HtmlDocument document = await GetDocument(control, Html); 2306HtmlDocument document = await GetDocument(control, Html); 2344HtmlDocument document = await GetDocument(control, Html); 2372private static async Task<HtmlDocument> GetDocument(WebBrowser control, string html)
System\Windows\Forms\HtmlElementTests.cs (129)
25HtmlDocument document = await GetDocument(control, Html); 45HtmlDocument document = await GetDocument(control, Html); 62HtmlDocument document = await GetDocument(control, Html); 65HtmlDocument result = element.Document; 81HtmlDocument document = await GetDocument(control, Html); 96HtmlDocument document = await GetDocument(control, Html); 111HtmlDocument document = await GetDocument(control, Html); 127HtmlDocument document = await GetDocument(control, Html); 146HtmlDocument document = await GetDocument(control, Html); 163HtmlDocument document = await GetDocument(control, Html); 185HtmlDocument document = await GetDocument(control, Html); 203HtmlDocument document = await GetDocument(control, html); 219HtmlDocument document = await GetDocument(control, Html); 241HtmlDocument document = await GetDocument(control, html); 280HtmlDocument document = await GetDocument(control, Html); 295HtmlDocument document = await GetDocument(control, Html); 313HtmlDocument document = await GetDocument(control, Html); 328HtmlDocument document = await GetDocument(control, Html); 346HtmlDocument document = await GetDocument(control, Html); 371HtmlDocument document = await GetDocument(control, Html); 402HtmlDocument document = await GetDocument(control, Html); 417HtmlDocument document = await GetDocument(control, Html); 436HtmlDocument document = await GetDocument(control, Html); 462HtmlDocument document = await GetDocument(control, Html); 493HtmlDocument document = await GetDocument(control, Html); 508HtmlDocument document = await GetDocument(control, Html); 523HtmlDocument document = await GetDocument(control, Html); 538HtmlDocument document = await GetDocument(control, Html); 557HtmlDocument document = await GetDocument(control, Html); 583HtmlDocument document = await GetDocument(control, Html); 614HtmlDocument document = await GetDocument(control, Html); 629HtmlDocument document = await GetDocument(control, Html); 644HtmlDocument document = await GetDocument(control, Html); 659HtmlDocument document = await GetDocument(control, Html); 675HtmlDocument document = await GetDocument(control, Html); 701HtmlDocument document = await GetDocument(control, Html); 734HtmlDocument document = await GetDocument(control, Html); 749HtmlDocument document = await GetDocument(control, Html); 767HtmlDocument document = await GetDocument(control, Html); 785HtmlDocument document = await GetDocument(control, Html); 803HtmlDocument document = await GetDocument(control, Html); 819HtmlDocument document = await GetDocument(control, Html); 834HtmlDocument document = await GetDocument(control, Html); 858HtmlDocument document = await GetDocument(control, Html); 889HtmlDocument document = await GetDocument(control, Html); 920HtmlDocument document = await GetDocument(control, Html); 935HtmlDocument document = await GetDocument(control, Html); 950HtmlDocument document = await GetDocument(control, Html); 969HtmlDocument document = await GetDocument(control, Html); 995HtmlDocument document = await GetDocument(control, Html); 1026HtmlDocument document = await GetDocument(control, Html); 1041HtmlDocument document = await GetDocument(control, Html); 1062HtmlDocument document = await GetDocument(control, Html); 1080HtmlDocument document = await GetDocument(control, Html); 1098HtmlDocument document = await GetDocument(control, Html); 1122HtmlDocument document = await GetDocument(control, Html); 1152HtmlDocument document = await GetDocument(control, Html); 1170HtmlDocument document = await GetDocument(control, Html); 1188HtmlDocument document = await GetDocument(control, Html); 1212HtmlDocument document = await GetDocument(control, Html); 1242HtmlDocument document = await GetDocument(control, Html); 1261HtmlDocument document = await GetDocument(control, html); 1280HtmlDocument document = await GetDocument(control, Html); 1309HtmlDocument document = await GetDocument(control, Html); 1342HtmlDocument document = await GetDocument(control, Html); 1360HtmlDocument document = await GetDocument(control, Html); 1384HtmlDocument document = await GetDocument(control, Html); 1414HtmlDocument document = await GetDocument(control, Html); 1429HtmlDocument document = await GetDocument(control, Html); 1461HtmlDocument document = await GetDocument(control, Html); 1499HtmlDocument document = await GetDocument(control, Html); 1516HtmlDocument document = await GetDocument(control, Html); 1581HtmlDocument document = await GetDocument(control, Html); 1622HtmlDocument document = await GetDocument(control, Html); 1664HtmlDocument document = await GetDocument(control, Html); 1703HtmlDocument document = await GetDocument(control, Html); 1722HtmlDocument document = await GetDocument(control, Html); 1742HtmlDocument document = await GetDocument(control, Html); 1771HtmlDocument document = await GetDocument(control, Html); 1789HtmlDocument document = await GetDocument(control, Html); 1807HtmlDocument document = await GetDocument(control, Html); 1829HtmlDocument document = await GetDocument(control, Html); 1847HtmlDocument document = await GetDocument(control, Html); 1863HtmlDocument document = await GetDocument(control, Html); 1895HtmlDocument document = await GetDocument(control, Html); 1915HtmlDocument document = await GetDocument(control, Html); 1930HtmlDocument document = await GetDocument(control, Html); 1955HtmlDocument document = await GetDocument(control, Html); 1970HtmlDocument document = await GetDocument(control, Html); 1993HtmlDocument document = await GetDocument(control, Html); 2031HtmlDocument document = await GetDocument(control, Html); 2075HtmlDocument document = await GetDocument(control, Html); 2113HtmlDocument document = await GetDocument(control, Html); 2157HtmlDocument document = await GetDocument(control, Html); 2193HtmlDocument document = await GetDocument(control, Html); 2237HtmlDocument document = await GetDocument(control, Html); 2272HtmlDocument document = await GetDocument(control, Html); 2316HtmlDocument document = await GetDocument(control, Html); 2332HtmlDocument document = await GetDocument(control, Html); 2347HtmlDocument document = await GetDocument(control, Html); 2367HtmlDocument document = await GetDocument(control, Html); 2387HtmlDocument document = await GetDocument(control, Html); 2405HtmlDocument document = await GetDocument(control, Html); 2426HtmlDocument document = await GetDocument(control, Html); 2445HtmlDocument document = await GetDocument(control, Html); 2470HtmlDocument document = await GetDocument(control, Html); 2485HtmlDocument document = await GetDocument(control, Html); 2502HtmlDocument document = await GetDocument(control, Html); 2525HtmlDocument document = await GetDocument(control, Html); 2549HtmlDocument document = await GetDocument(control, Html); 2590HtmlDocument document = await GetDocument(control, Html); 2631HtmlDocument document = await GetDocument(control, Html); 2672HtmlDocument document = await GetDocument(control, Html); 2713HtmlDocument document = await GetDocument(control, Html); 2754HtmlDocument document = await GetDocument(control, Html); 2795HtmlDocument document = await GetDocument(control, Html); 2836HtmlDocument document = await GetDocument(control, Html); 2877HtmlDocument document = await GetDocument(control, Html); 2918HtmlDocument document = await GetDocument(control, Html); 2959HtmlDocument document = await GetDocument(control, Html); 3000HtmlDocument document = await GetDocument(control, Html); 3041HtmlDocument document = await GetDocument(control, Html); 3082HtmlDocument document = await GetDocument(control, Html); 3123HtmlDocument document = await GetDocument(control, Html); 3164HtmlDocument document = await GetDocument(control, Html); 3205HtmlDocument document = await GetDocument(control, Html); 3246HtmlDocument document = await GetDocument(control, Html); 3287HtmlDocument document = await GetDocument(control, Html); 3318private static async Task<HtmlDocument> GetDocument(WebBrowser control, string html)
System\Windows\Forms\HtmlWindowTests.cs (5)
22HtmlDocument document = await GetDocument(control, Html); 38HtmlDocument document = await GetDocument(control, Html); 54HtmlDocument document = await GetDocument(control, Html); 84HtmlDocument document = await GetDocument(control, Html); 92private static async Task<HtmlDocument> GetDocument(WebBrowser control, string html)
System\Windows\Forms\WebBrowserTests.cs (1)
467HtmlDocument document = control.Document;