AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.9.9.2" />

.NET API 1,223,680 bytes

 HtmlAnchorElement

Represents an anchor element.
using AngleSharp.Dom.Css; using AngleSharp.Dom.Events; using AngleSharp.Extensions; using AngleSharp.Html; namespace AngleSharp.Dom.Html { internal sealed class HtmlAnchorElement : HtmlUrlBaseElement, IHtmlAnchorElement, IHtmlElement, IElement, INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode, IElementCssInlineStyle, IGlobalEventHandlers, IUrlUtilities { public string Charset { get { return this.GetOwnAttribute(AttributeNames.Charset); } set { this.SetOwnAttribute(AttributeNames.Charset, value, false); } } public string Name { get { return this.GetOwnAttribute(AttributeNames.Name); } set { this.SetOwnAttribute(AttributeNames.Name, value, false); } } public string Text { get { return TextContent; } set { TextContent = value; } } public HtmlAnchorElement(Document owner, string prefix = null) : base(owner, TagNames.A, prefix, NodeFlags.HtmlFormatting) { } public override void DoFocus() { if (this.HasOwnAttribute(AttributeNames.Href)) base.IsFocused = true; } } }