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