Table of Contents

Interface IHtmlTableSectionElement

Namespace
AngleSharp.Html.Dom
Assembly
AngleSharp.dll

Represent the base of table section (tbody, thead, tfoot) elements.

[DomName("HTMLTableSectionElement")]
public interface IHtmlTableSectionElement : IHtmlElement, IElement, INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode, IGlobalEventHandlers
Inherited Members
Extension Methods

Properties

Rows

Gets the assigned table rows.

[DomName("rows")]
IHtmlCollection<IHtmlTableRowElement> Rows { get; }

Property Value

IHtmlCollection<IHtmlTableRowElement>

Methods

InsertRowAt(int)

Inserts a row into this section. The new row is inserted immediately before the current indexth row in this section. If index is -1 or equal to the number of rows in this section, the new row is appended.

[DomName("insertRow")]
IHtmlTableRowElement InsertRowAt(int index = -1)

Parameters

index int

The row number where to insert a new row. This index starts from 0 and is relative only to the rows contained inside this section, not all the rows in the table.

Returns

IHtmlTableRowElement

The inserted table row.

RemoveRowAt(int)

Deletes a row from this section.

[DomName("deleteRow")]
void RemoveRowAt(int index)

Parameters

index int

The index of the row to be deleted, or -1 to delete the last row. This index starts from 0 and is relative only to the rows contained inside this section, not all the rows in the table.