AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="1.0.6-alpha-321" />

.NET API 893,952 bytes

 IDocument

The Document interface serves as an entry point to the web page's content.
using AngleSharp.Attributes; using AngleSharp.Dom.Events; using AngleSharp.Html.Dom; using AngleSharp.Text; using System; using System.Net; using System.Runtime.CompilerServices; namespace AngleSharp.Dom { [System.Runtime.CompilerServices.NullableContext(1)] [DomName("Document")] public interface IDocument : INode, IEventTarget, IMarkupFormattable, IParentNode, IGlobalEventHandlers, IDocumentStyle, INonElementParentNode, IDisposable { [DomName("all")] IHtmlAllCollection All { get; } [DomName("anchors")] IHtmlCollection<IHtmlAnchorElement> Anchors { get; } [DomName("implementation")] IImplementation Implementation { get; } [DomName("designMode")] string DesignMode { get; set; } [System.Runtime.CompilerServices.Nullable(2)] [DomName("dir")] string Direction { [System.Runtime.CompilerServices.NullableContext(2)] get; [System.Runtime.CompilerServices.NullableContext(2)] set; } [DomName("documentURI")] string DocumentUri { get; } [DomName("characterSet")] string CharacterSet { get; } [DomName("compatMode")] string CompatMode { get; } [DomName("URL")] string Url { get; } [DomName("contentType")] string ContentType { get; } [DomName("doctype")] IDocumentType Doctype { get; } [DomName("documentElement")] IElement DocumentElement { get; } [System.Runtime.CompilerServices.Nullable(2)] [DomName("lastModified")] string LastModified { [System.Runtime.CompilerServices.NullableContext(2)] get; } [DomLenientThis] [DomName("readyState")] DocumentReadyState ReadyState { get; } [DomName("location")] [DomPutForwards("href")] ILocation Location { get; } [DomName("forms")] IHtmlCollection<IHtmlFormElement> Forms { get; } [DomName("images")] IHtmlCollection<IHtmlImageElement> Images { get; } [DomName("scripts")] IHtmlCollection<IHtmlScriptElement> Scripts { get; } [DomName("embeds")] [DomName("plugins")] IHtmlCollection<IHtmlEmbedElement> Plugins { get; } [DomName("commands")] IHtmlCollection<IElement> Commands { get; } [DomName("links")] IHtmlCollection<IElement> Links { get; } [System.Runtime.CompilerServices.Nullable(2)] [DomName("title")] string Title { [System.Runtime.CompilerServices.NullableContext(2)] get; [System.Runtime.CompilerServices.NullableContext(2)] set; } [System.Runtime.CompilerServices.Nullable(2)] [DomName("head")] IHtmlHeadElement Head { [System.Runtime.CompilerServices.NullableContext(2)] get; } [System.Runtime.CompilerServices.Nullable(2)] [DomName("body")] IHtmlElement Body { [System.Runtime.CompilerServices.NullableContext(2)] get; [System.Runtime.CompilerServices.NullableContext(2)] set; } [DomName("cookie")] string Cookie { get; set; } [System.Runtime.CompilerServices.Nullable(2)] [DomName("origin")] string Origin { [System.Runtime.CompilerServices.NullableContext(2)] get; } [DomName("domain")] string Domain { get; set; } [System.Runtime.CompilerServices.Nullable(2)] [DomName("referrer")] string Referrer { [System.Runtime.CompilerServices.NullableContext(2)] get; } [System.Runtime.CompilerServices.Nullable(2)] [DomName("activeElement")] IElement ActiveElement { [System.Runtime.CompilerServices.NullableContext(2)] get; } [System.Runtime.CompilerServices.Nullable(2)] [DomName("currentScript")] IHtmlScriptElement CurrentScript { [System.Runtime.CompilerServices.NullableContext(2)] get; } [System.Runtime.CompilerServices.Nullable(2)] [DomName("defaultView")] IWindow DefaultView { [System.Runtime.CompilerServices.NullableContext(2)] get; } IBrowsingContext Context { get; } [System.Runtime.CompilerServices.Nullable(2)] IDocument ImportAncestor { [System.Runtime.CompilerServices.NullableContext(2)] get; } TextSource Source { get; } HttpStatusCode StatusCode { get; } IEntityProvider Entities { get; } [DomName("onreadystatechange")] event DomEventHandler ReadyStateChanged; [DomName("open")] IDocument Open(string type = "text/html", [System.Runtime.CompilerServices.Nullable(2)] string replace = null); [DomName("close")] void Close(); [DomName("write")] void Write(string content); [DomName("writeln")] void WriteLine(string content); [DomName("load")] void Load(string url); [DomName("getElementsByName")] IHtmlCollection<IElement> GetElementsByName(string name); [DomName("getElementsByClassName")] IHtmlCollection<IElement> GetElementsByClassName(string classNames); [DomName("getElementsByTagName")] IHtmlCollection<IElement> GetElementsByTagName(string tagName); [DomName("getElementsByTagNameNS")] IHtmlCollection<IElement> GetElementsByTagName([System.Runtime.CompilerServices.Nullable(2)] string namespaceUri, string tagName); [DomName("createEvent")] Event CreateEvent(string type); [DomName("createRange")] IRange CreateRange(); [DomName("createComment")] IComment CreateComment(string data); [DomName("createDocumentFragment")] IDocumentFragment CreateDocumentFragment(); [DomName("createElement")] IElement CreateElement(string name); [DomName("createElementNS")] IElement CreateElement([System.Runtime.CompilerServices.Nullable(2)] string namespaceUri, string name); [DomName("createAttribute")] IAttr CreateAttribute(string name); [DomName("createAttributeNS")] IAttr CreateAttribute([System.Runtime.CompilerServices.Nullable(2)] string namespaceUri, string name); [DomName("createProcessingInstruction")] IProcessingInstruction CreateProcessingInstruction(string target, string data); [DomName("createTextNode")] IText CreateTextNode(string data); [DomName("createNodeIterator")] INodeIterator CreateNodeIterator(INode root, FilterSettings settings = FilterSettings.All, [System.Runtime.CompilerServices.Nullable(2)] NodeFilter filter = null); [DomName("createTreeWalker")] ITreeWalker CreateTreeWalker(INode root, FilterSettings settings = FilterSettings.All, [System.Runtime.CompilerServices.Nullable(2)] NodeFilter filter = null); [DomName("importNode")] INode Import(INode externalNode, bool deep = true); [DomName("adoptNode")] INode Adopt(INode externalNode); [DomName("hasFocus")] bool HasFocus(); [DomName("execCommand")] bool ExecuteCommand(string commandId, bool showUserInterface = false, string value = ""); [DomName("queryCommandEnabled")] bool IsCommandEnabled(string commandId); [DomName("queryCommandIndeterm")] bool IsCommandIndeterminate(string commandId); [DomName("queryCommandState")] bool IsCommandExecuted(string commandId); [DomName("queryCommandSupported")] bool IsCommandSupported(string commandId); [DomName("queryCommandValue")] [return: System.Runtime.CompilerServices.Nullable(2)] string GetCommandValue(string commandId); bool AddImportUrl(Uri uri); bool HasImported(Uri uri); } }