12 instantiations of HtmlElement
System.Windows.Forms (12)
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (5)
83
return iHtmlElement is not null ? new
HtmlElement
(ShimManager, iHtmlElement) : null;
94
return iHtmlElement is not null ? new
HtmlElement
(ShimManager, iHtmlElement) : null;
455
return iHTMLElement is not null ? new
HtmlElement
(ShimManager, iHTMLElement) : null;
463
return iHTMLElement is not null ? new
HtmlElement
(ShimManager, iHTMLElement) : null;
498
return iHTMLElement is not null ? new
HtmlElement
(ShimManager, iHTMLElement) : null;
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (5)
175
return iHtmlElement is not null ? new
HtmlElement
(_shimManager, iHtmlElement) : null;
291
return iHtmlElement is not null ? new
HtmlElement
(_shimManager, iHtmlElement) : null;
321
return iHtmlElement is not null ? new
HtmlElement
(_shimManager, iHtmlElement) : null;
390
return iHtmlElement is not null ? new
HtmlElement
(_shimManager, iHtmlElement) : null;
558
return adjElement is not null ? new
HtmlElement
(_shimManager, adjElement) : null;
System\Windows\Forms\Controls\WebBrowser\HtmlElementCollection.cs (1)
61
? new
HtmlElement
(_shimManager, htmlElement)
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (1)
250
? new
HtmlElement
(ShimManager, htmlElement)
236 references to HtmlElement
System.Windows.Forms (51)
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (5)
76
public
HtmlElement
? ActiveElement
87
public
HtmlElement
? Body
449
public
HtmlElement
? GetElementById(string id)
458
public
HtmlElement
? GetElementFromPoint(Point point)
492
public
HtmlElement
? CreateElement(string elementTag)
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (13)
157
public
HtmlElement
? FirstChild
273
public
HtmlElement
? NextSibling
314
public
HtmlElement
? OffsetParent
383
public
HtmlElement
? Parent
497
public
HtmlElement
? AppendChild(
HtmlElement
newElement)
550
public
HtmlElement
? InsertAdjacentElement(HtmlElementInsertionOrientation orientation,
HtmlElement
newElement)
794
public static unsafe bool operator ==(
HtmlElement
? left,
HtmlElement
? right)
810
public static bool operator !=(
HtmlElement
? left,
HtmlElement
? right) => !(left == right);
814
public override bool Equals(object? obj) => this == (obj as
HtmlElement
);
System\Windows\Forms\Controls\WebBrowser\HtmlElement.HTMLElementEvents2.cs (2)
38
private readonly
HtmlElement
_parent;
40
public HTMLElementEvents2(
HtmlElement
htmlElement)
System\Windows\Forms\Controls\WebBrowser\HtmlElement.HtmlElementShim.cs (3)
48
private
HtmlElement
_htmlElement;
50
public HtmlElementShim(
HtmlElement
element)
70
internal
HtmlElement
Element => _htmlElement;
System\Windows\Forms\Controls\WebBrowser\HtmlElementCollection.cs (12)
14
private readonly
HtmlElement
[]? _elementsArray;
37
internal HtmlElementCollection(HtmlShimManager shimManager,
HtmlElement
[] array)
46
public
HtmlElement
? this[int index]
69
public
HtmlElement
? this[string elementId]
89
HtmlElement
element = _elementsArray[i];
108
HtmlElement
[] temp = new
HtmlElement
[count]; // count is the maximum # of matches
113
HtmlElement
element = this[i]!;
127
HtmlElement
[] elements = new
HtmlElement
[tempIndex];
171
HtmlElement
[] htmlElements = new
HtmlElement
[Count];
System\Windows\Forms\Controls\WebBrowser\HtmlElementEventArgs.cs (2)
104
public unsafe
HtmlElement
? FromElement
115
public unsafe
HtmlElement
? ToElement
System\Windows\Forms\Controls\WebBrowser\HtmlShimManager.cs (13)
18
private Dictionary<
HtmlElement
,
HtmlElement
.HtmlElementShim>? _htmlElementShims;
79
public void AddElementShim(
HtmlElement
element)
81
HtmlElement
.HtmlElementShim? shim = null;
86
shim = new
HtmlElement
.HtmlElementShim(element);
91
shim = new
HtmlElement
.HtmlElementShim(element);
116
internal
HtmlElement
.HtmlElementShim? GetElementShim(
HtmlElement
element)
123
if (_htmlElementShims.TryGetValue(element, out
HtmlElement
.HtmlElementShim? elementShim))
191
HtmlElement
.HtmlElementShim[] shims = new
HtmlElement
.HtmlElementShim[_htmlElementShims.Count];
194
foreach (
HtmlElement
.HtmlElementShim shim in shims)
226
foreach (
HtmlElement
.HtmlElementShim shim in _htmlElementShims.Values)
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (1)
241
public
HtmlElement
? WindowFrameElement
System.Windows.Forms.Tests (185)
System\Windows\Forms\HtmlDocumentTests.cs (10)
184
HtmlElement
element = document.ActiveElement;
201
HtmlElement
element = document.ActiveElement;
218
HtmlElement
target = document.GetElementById("target");
220
HtmlElement
active = document.ActiveElement;
228
HtmlElement
element = document.ActiveElement;
367
HtmlElement
element = document.Body;
384
HtmlElement
element = document.Body;
401
HtmlElement
element = document.Body;
1548
HtmlElement
element = document.CreateElement(tagName);
1777
Assert.Equal("HTML", ((
HtmlElement
)Assert.Single(document.GetElementsByTagName("html"))).TagName);
System\Windows\Forms\HtmlElementTests.cs (175)
26
HtmlElement
element = document.GetElementById("id");
46
HtmlElement
element = document.GetElementById("id");
63
HtmlElement
element = document.GetElementById("id");
82
HtmlElement
element = document.GetElementById("id");
97
HtmlElement
element = document.GetElementById("id");
112
HtmlElement
element = document.GetElementById("id");
128
HtmlElement
element = document.GetElementById("id");
147
HtmlElement
element = document.GetElementById("id");
164
HtmlElement
element = document.GetElementById("id");
186
HtmlElement
element = document.GetElementById("id");
204
HtmlElement
element = document.GetElementById("id");
220
HtmlElement
element = document.GetElementById("id");
242
HtmlElement
element = document.GetElementById("id");
281
HtmlElement
element = document.GetElementById("id");
296
HtmlElement
element = document.GetElementById("id");
298
HtmlElement
result = element.FirstChild;
314
HtmlElement
element = document.Body;
329
HtmlElement
element = document.GetElementById("id");
347
HtmlElement
element = document.GetElementById("id");
372
HtmlElement
element = document.GetElementById("id");
403
HtmlElement
element = document.GetElementById("id");
418
HtmlElement
element = document.GetElementById("id");
437
HtmlElement
element = document.GetElementById("id");
463
HtmlElement
element = document.GetElementById("id");
494
HtmlElement
element = document.GetElementById("id");
509
HtmlElement
element = document.Body.Parent;
524
HtmlElement
element = document.GetElementById("id");
539
HtmlElement
element = document.GetElementById("id");
558
HtmlElement
element = document.GetElementById("id");
584
HtmlElement
element = document.GetElementById("id");
615
HtmlElement
element = document.GetElementById("id");
630
HtmlElement
element = document.Body.Parent;
645
HtmlElement
element = document.Body;
660
HtmlElement
element = document.GetElementById("id");
676
HtmlElement
element = document.GetElementById("id");
702
HtmlElement
element = document.GetElementById("id");
735
HtmlElement
element = document.GetElementById("id");
750
HtmlElement
element = document.GetElementById("id");
752
HtmlElement
result = element.NextSibling;
768
HtmlElement
element = document.GetElementById("id");
769
HtmlElement
result = element.OffsetParent;
786
HtmlElement
element = document.GetElementById("id");
788
HtmlElement
result = element.OffsetParent;
804
HtmlElement
element = document.GetElementById("id");
820
HtmlElement
element = document.GetElementById("id");
835
HtmlElement
element = document.GetElementById("id");
859
HtmlElement
element = document.GetElementById("id");
890
HtmlElement
element = document.GetElementById("id");
921
HtmlElement
element = document.Body.Parent;
936
HtmlElement
element = document.GetElementById("id");
951
HtmlElement
element = document.GetElementById("id");
970
HtmlElement
element = document.GetElementById("id");
996
HtmlElement
element = document.GetElementById("id");
1027
HtmlElement
element = document.Body.Parent;
1042
HtmlElement
element = document.GetElementById("id");
1043
HtmlElement
result = element.Parent;
1047
HtmlElement
resultParent = result.Parent;
1063
HtmlElement
element = document.GetElementById("id");
1065
HtmlElement
result = element.Parent;
1081
HtmlElement
element = document.GetElementById("id");
1099
HtmlElement
element = document.GetElementById("id");
1123
HtmlElement
element = document.GetElementById("id");
1153
HtmlElement
element = document.GetElementById("id");
1171
HtmlElement
element = document.GetElementById("id");
1189
HtmlElement
element = document.GetElementById("id");
1213
HtmlElement
element = document.GetElementById("id");
1243
HtmlElement
element = document.Body;
1262
HtmlElement
element = document.GetElementById("id");
1281
HtmlElement
element = document.GetElementById("id");
1310
HtmlElement
element = document.GetElementById("id");
1343
HtmlElement
element = document.GetElementById("id");
1361
HtmlElement
element = document.GetElementById("id");
1385
HtmlElement
element = document.GetElementById("id");
1415
HtmlElement
element = document.GetElementById("id");
1430
HtmlElement
element = document.GetElementById("id");
1431
HtmlElement
newElement1 = document.CreateElement("h1");
1432
HtmlElement
newElement2 = document.CreateElement("h2");
1433
HtmlElement
newElement3 = document.CreateElement("h3");
1462
HtmlElement
element = document.GetElementById("id");
1463
HtmlElement
newElement1 = document.CreateElement("h1");
1464
HtmlElement
newElement2 = document.CreateElement("h2");
1465
HtmlElement
newElement3 = document.CreateElement("h3");
1500
HtmlElement
element = document.GetElementById("id");
1517
HtmlElement
element = document.GetElementById("id");
1582
HtmlElement
element = document.GetElementById("id");
1623
HtmlElement
element = document.GetElementById("id");
1665
HtmlElement
element = document.GetElementById("id");
1704
HtmlElement
element = document.GetElementById("id");
1723
HtmlElement
element = document.GetElementById("id");
1743
HtmlElement
element = document.GetElementById("id");
1772
HtmlElement
element = document.GetElementById("id");
1790
HtmlElement
element = document.GetElementById("id");
1808
HtmlElement
element1 = document.GetElementById("id1");
1809
HtmlElement
element2 = document.GetElementById("id1");
1810
HtmlElement
element3 = document.GetElementById("id2");
1830
HtmlElement
element = document.GetElementById("id");
1848
HtmlElement
element = document.Body;
1864
HtmlElement
element = document.Body;
1896
HtmlElement
element = document.GetElementById("id");
1916
HtmlElement
element = document.GetElementById("id");
1931
HtmlElement
element = document.GetElementById("id");
1956
HtmlElement
element = document.GetElementById("id");
1971
HtmlElement
element1 = document.GetElementById("id1");
1972
HtmlElement
element2 = document.GetElementById("id1");
1973
HtmlElement
element3 = document.GetElementById("id2");
1994
HtmlElement
element = document.GetElementById("id");
1995
HtmlElement
newElement1 = document.CreateElement("h1");
1996
HtmlElement
newElement2 = document.CreateElement("h2");
1997
HtmlElement
newElement3 = document.CreateElement("h3");
2032
HtmlElement
element = document.GetElementById("id");
2033
HtmlElement
newElement1 = document.CreateElement("h1");
2034
HtmlElement
newElement2 = document.CreateElement("h2");
2035
HtmlElement
newElement3 = document.CreateElement("h3");
2076
HtmlElement
element = document.GetElementById("id");
2077
HtmlElement
newElement1 = document.CreateElement("h1");
2078
HtmlElement
newElement2 = document.CreateElement("h2");
2079
HtmlElement
newElement3 = document.CreateElement("h3");
2114
HtmlElement
element = document.GetElementById("id");
2115
HtmlElement
newElement1 = document.CreateElement("h1");
2116
HtmlElement
newElement2 = document.CreateElement("h2");
2117
HtmlElement
newElement3 = document.CreateElement("h3");
2158
HtmlElement
element = document.GetElementById("id");
2159
HtmlElement
newElement1 = document.CreateElement("h1");
2160
HtmlElement
newElement2 = document.CreateElement("h2");
2161
HtmlElement
newElement3 = document.CreateElement("h3");
2194
HtmlElement
element = document.GetElementById("id");
2195
HtmlElement
newElement1 = document.CreateElement("h1");
2196
HtmlElement
newElement2 = document.CreateElement("h2");
2197
HtmlElement
newElement3 = document.CreateElement("h3");
2238
HtmlElement
element = document.GetElementById("id");
2239
HtmlElement
newElement1 = document.CreateElement("h1");
2240
HtmlElement
newElement2 = document.CreateElement("h2");
2241
HtmlElement
newElement3 = document.CreateElement("h3");
2273
HtmlElement
element = document.GetElementById("id");
2274
HtmlElement
newElement1 = document.CreateElement("h1");
2275
HtmlElement
newElement2 = document.CreateElement("h2");
2276
HtmlElement
newElement3 = document.CreateElement("h3");
2317
HtmlElement
element = document.GetElementById("id");
2333
HtmlElement
element = document.GetElementById("id");
2334
HtmlElement
newElement = document.CreateElement("H1");
2348
HtmlElement
element = document.GetElementById("target");
2368
HtmlElement
element = document.GetElementById("target");
2388
HtmlElement
element = document.GetElementById("id");
2406
HtmlElement
element = document.GetElementById("id");
2427
HtmlElement
element = document.GetElementById("id");
2446
HtmlElement
element = document.GetElementById("id");
2471
HtmlElement
element = document.GetElementById("id");
2486
HtmlElement
element = document.GetElementById("id");
2503
HtmlElement
element1 = document.GetElementById("id1");
2504
HtmlElement
element2 = document.GetElementById("id1");
2505
HtmlElement
element3 = document.GetElementById("id2");
2512
Assert.Null((
HtmlElement
)null);
2526
HtmlElement
element1 = document.GetElementById("id1");
2527
HtmlElement
element2 = document.GetElementById("id1");
2528
HtmlElement
element3 = document.GetElementById("id2");
2535
Assert.Null((
HtmlElement
)null);
2550
HtmlElement
element = document.GetElementById("id");
2591
HtmlElement
element = document.GetElementById("id");
2632
HtmlElement
element = document.GetElementById("id");
2673
HtmlElement
element = document.GetElementById("id");
2714
HtmlElement
element = document.GetElementById("id");
2755
HtmlElement
element = document.GetElementById("id");
2796
HtmlElement
element = document.GetElementById("id");
2837
HtmlElement
element = document.GetElementById("id");
2878
HtmlElement
element = document.GetElementById("id");
2919
HtmlElement
element = document.GetElementById("id");
2960
HtmlElement
element = document.GetElementById("id");
3001
HtmlElement
element = document.GetElementById("id");
3042
HtmlElement
element = document.GetElementById("id");
3083
HtmlElement
element = document.GetElementById("id");
3124
HtmlElement
element = document.GetElementById("id");
3165
HtmlElement
element = document.GetElementById("id");
3206
HtmlElement
element = document.GetElementById("id");
3247
HtmlElement
element = document.GetElementById("id");
3288
HtmlElement
element = document.GetElementById("id");