AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.16.1-alpha-110" />

.NET API 879,104 bytes

 IElement

The Element interface represents an object within a DOM document.
using AngleSharp.Attributes; using System.Runtime.CompilerServices; namespace AngleSharp.Dom { [System.Runtime.CompilerServices.NullableContext(1)] [DomName("Element")] public interface IElement : INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode { [System.Runtime.CompilerServices.Nullable(2)] [DomName("prefix")] string Prefix { [System.Runtime.CompilerServices.NullableContext(2)] get; } [DomName("localName")] string LocalName { get; } [System.Runtime.CompilerServices.Nullable(2)] [DomName("namespaceURI")] string NamespaceUri { [System.Runtime.CompilerServices.NullableContext(2)] get; } [DomName("attributes")] INamedNodeMap Attributes { get; } [DomName("classList")] ITokenList ClassList { get; } [System.Runtime.CompilerServices.Nullable(2)] [DomName("className")] string ClassName { [System.Runtime.CompilerServices.NullableContext(2)] get; [System.Runtime.CompilerServices.NullableContext(2)] set; } [System.Runtime.CompilerServices.Nullable(2)] [DomName("id")] string Id { [System.Runtime.CompilerServices.NullableContext(2)] get; [System.Runtime.CompilerServices.NullableContext(2)] set; } [DomName("innerHTML")] string InnerHtml { get; set; } [DomName("outerHTML")] string OuterHtml { get; set; } [DomName("tagName")] string TagName { get; } [System.Runtime.CompilerServices.Nullable(2)] [DomName("assignedSlot")] IElement AssignedSlot { [System.Runtime.CompilerServices.NullableContext(2)] get; } [System.Runtime.CompilerServices.Nullable(2)] [DomName("slot")] string Slot { [System.Runtime.CompilerServices.NullableContext(2)] get; [System.Runtime.CompilerServices.NullableContext(2)] set; } [System.Runtime.CompilerServices.Nullable(2)] [DomName("shadowRoot")] IShadowRoot ShadowRoot { [System.Runtime.CompilerServices.NullableContext(2)] get; } bool IsFocused { get; } [System.Runtime.CompilerServices.Nullable(2)] ISourceReference SourceReference { [System.Runtime.CompilerServices.NullableContext(2)] get; } [DomName("insertAdjacentHTML")] void Insert(AdjacentPosition position, string html); [DomName("hasAttribute")] bool HasAttribute(string name); [DomName("hasAttributeNS")] bool HasAttribute([System.Runtime.CompilerServices.Nullable(2)] string namespaceUri, string localName); [DomName("getAttribute")] [return: System.Runtime.CompilerServices.Nullable(2)] string GetAttribute(string name); [System.Runtime.CompilerServices.NullableContext(2)] [DomName("getAttributeNS")] string GetAttribute(string namespaceUri, [System.Runtime.CompilerServices.Nullable(1)] string localName); [DomName("setAttribute")] void SetAttribute(string name, string value); [DomName("setAttributeNS")] void SetAttribute([System.Runtime.CompilerServices.Nullable(2)] string namespaceUri, string name, string value); [DomName("removeAttribute")] bool RemoveAttribute(string name); [DomName("removeAttributeNS")] bool RemoveAttribute([System.Runtime.CompilerServices.Nullable(2)] string namespaceUri, string localName); [DomName("getElementsByClassName")] IHtmlCollection<IElement> GetElementsByClassName(string classNames); [DomName("getElementsByTagName")] IHtmlCollection<IElement> GetElementsByTagName(string tagName); [DomName("getElementsByTagNameNS")] IHtmlCollection<IElement> GetElementsByTagNameNS([System.Runtime.CompilerServices.Nullable(2)] string namespaceUri, string tagName); [DomName("matches")] bool Matches(string selectors); [DomName("closest")] [return: System.Runtime.CompilerServices.Nullable(2)] IElement Closest(string selectors); [DomName("attachShadow")] [DomInitDict(0, false)] IShadowRoot AttachShadow(ShadowRootMode mode = ShadowRootMode.Open); } }