AngleSharp by Florian Rappl

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

.NET API 371,712 bytes

 HTMLMenuItemElement

public sealed class HTMLMenuItemElement : HTMLElement
Represents the HTML menuitem element.
namespace AngleSharp.DOM.Html { public sealed class HTMLMenuItemElement : HTMLElement { public enum ItemType : ushort { Command, Checkbox, Radio } public const string Tag = "menuitem"; internal bool IsVisited { get; set; } internal bool IsActive { get; set; } public Element Command { get { string attribute = GetAttribute("command"); if (!string.IsNullOrEmpty(attribute) && _owner != null) return _owner.GetElementById(attribute); return null; } } public ItemType Type { get { return Element.ToEnum(GetAttribute("type"), ItemType.Command); } set { SetAttribute("type", value.ToString()); } } public string Label { get { return GetAttribute("label"); } set { SetAttribute("label", value); } } public string Icon { get { return GetAttribute("icon"); } set { SetAttribute("icon", value); } } public bool Disabled { get { return GetAttribute("disabled") != null; } set { SetAttribute("disabled", value ? string.Empty : null); } } public bool Checked { get { return GetAttribute("checked") != null; } set { SetAttribute("checked", value ? string.Empty : null); } } public bool Default { get { return GetAttribute("default") != null; } set { SetAttribute("default", value ? string.Empty : null); } } public string Radiogroup { get { return GetAttribute("radiogroup"); } set { SetAttribute("radiogroup", value); } } protected internal override bool IsSpecial => true; public HTMLMenuItemElement() { _name = "menuitem"; } } }