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