AngleSharp by Florian Rappl

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

.NET API 1,229,312 bytes

 HtmlLabelElement

Represents the HTML label element.
using AngleSharp.Dom.Css; using AngleSharp.Html; namespace AngleSharp.Dom.Html { internal sealed class HtmlLabelElement : HtmlElement, IHtmlLabelElement, IHtmlElement, IElement, INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode, IElementCssInlineStyle { public IHtmlElement Control { get { string htmlFor = HtmlFor; if (!string.IsNullOrEmpty(htmlFor)) { IHtmlElement htmlElement = base.Owner.GetElementById(htmlFor) as IHtmlElement; if (htmlElement is ILabelabelElement) return htmlElement; } return null; } } public string HtmlFor { get { return GetOwnAttribute(AttributeNames.For); } set { SetOwnAttribute(AttributeNames.For, value); } } public IHtmlFormElement Form => GetAssignedForm(); public HtmlLabelElement(Document owner, string prefix = null) : base(owner, Tags.Label, prefix, NodeFlags.None) { } } }