AngleSharp by Florian Rappl

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

.NET API 737,792 bytes

 HTMLTableSectionElement

Represents the object for HTML table section (thead / tbody / tfoot) elements.
using AngleSharp.DOM.Collections; namespace AngleSharp.DOM.Html { [DOM("HTMLTableSectionElement")] public sealed class HTMLTableSectionElement : HTMLElement, IImplClosed, ITableSectionScopeElement { private HTMLCollection<HTMLTableRowElement> _rows; [DOM("align")] public HorizontalAlignment Align { get { return Element.ToEnum(GetAttribute("align"), HorizontalAlignment.Center); } set { SetAttribute("align", value.ToString()); } } [DOM("rows")] public HTMLCollection<HTMLTableRowElement> Rows { get { return _rows; } } [DOM("vAlign")] public VerticalAlignment VAlign { get { return Element.ToEnum(GetAttribute("valign"), VerticalAlignment.Middle); } set { SetAttribute("valign", value.ToString()); } } protected internal override bool IsSpecial => true; internal HTMLTableSectionElement() { _name = "tbody"; _rows = new HTMLCollection<HTMLTableRowElement>(this, true, null); } [DOM("insertRow")] public HTMLTableRowElement InsertRow(int index) { HTMLTableRowElement hTMLTableRowElement = Rows[index]; HTMLTableRowElement hTMLTableRowElement2 = base.OwnerDocument.CreateElement("tr") as HTMLTableRowElement; if (hTMLTableRowElement != null) InsertBefore(hTMLTableRowElement2, hTMLTableRowElement); else AppendChild(hTMLTableRowElement2); return hTMLTableRowElement2; } [DOM("deleteRow")] public HTMLTableSectionElement DeleteRow(int index) { Rows[index]?.Remove(); return this; } } }