Table of Contents

Interface IHtmlTableRowElement

Namespace
AngleSharp.Html.Dom
Assembly
AngleSharp.dll

Represents the tr HTML element.

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

Properties

Cells

Gets the assigned table cells.

[DomName("cells")]
IHtmlCollection<IHtmlTableCellElement> Cells { get; }

Property Value

IHtmlCollection<IHtmlTableCellElement>

Index

Gets the index in the logical order and not in document order.

[DomName("rowIndex")]
int Index { get; }

Property Value

int

IndexInSection

Gets the index of this row, relative to the current section starting from 0.

[DomName("sectionRowIndex")]
int IndexInSection { get; }

Property Value

int

Methods

InsertCellAt(int, TableCellKind)

Insert an empty TD or TH cell into this row. If index is -1 or equal to the number of cells, the new cell is appended.

[DomName("insertCell")]
IHtmlTableCellElement InsertCellAt(int index = -1, TableCellKind tableCellKind = TableCellKind.Td)

Parameters

index int

[Optional] The place to insert the cell, starting from 0. A negative value indicates that the cell should be appended to the row.

tableCellKind TableCellKind

[Optional] The kind of table cell to insert.

Returns

IHtmlTableCellElement

The inserted table cell.

RemoveCellAt(int)

Deletes a cell from the current row.

[DomName("deleteCell")]
void RemoveCellAt(int index)

Parameters

index int

The index of the cell to delete, starting from 0. If the index is -1 the last cell in the row is deleted.