VDocs.NET
Back to DOM

DOM.Elements.TableElements.TableRow

Namespace: DOM.Elements.TableElements

Represents a single row within a table. Acontains multipleelements and provides access, enumeration, addition, removal, and styling capabilities for its cells.

9 members

Properties

CellsITableCell

Gets a collection of allelements contained in this row.

Item

Gets or sets the table cell at the specified column index.

Style

Gets or sets the style applied to this row, including row-level formatting such as height, borders, shading, and other visual properties.

Methods

AddCell

ITableCell AddCell(ITableCell cell)

Adds a new cell to this row.

Parameters

cell
Theto add.

Returns

ITableCell

The addedinstance.

GetEnumerator

ITableCell GetEnumerator

Returns an enumerator that iterates through all cells in this row.

Returns

ITableCell

An enumerator of.

MergeCells

ITable MergeCells(int startColumn, int endColumn)

Merges cells within this row from the specified start to end column indices.

Parameters

startColumn
The starting column index.
endColumn
The ending column index.

Returns

ITable

The parentcontaining this row.

Exceptions

  • System.NotImplementedException: Always thrown until implemented.

RemoveCell

2 overloads
ITableRow RemoveCell(ITableCell cell)

Removes the specified cell from this row.

Parameters

cell
The cell to remove.

Returns

ITableRow

The currentinstance.

ITableRow RemoveCell(int index)

Removes the cell at the specified column index from this row.

Parameters

index
The zero-based column index.

Returns

ITableRow

The currentinstance.

System#Collections#IEnumerable#GetEnumerator

System#Collections#IEnumerable#GetEnumerator

Returns an enumerator that iterates through all cells in this row.

VDocs.NET
The .NET Word Document Library

Generate Word
documents.
Not XML.

Create professional documents in .NET without the complexity of OpenXML or Word Interop.

C#VB.NET
var doc = new WordDocument();

doc.AddParagraph()
   .AddText("Invoice")
   .SetHeading(HeadingLevel.Title);

doc.Save("invoice.docx");

Create Account

Create your VDocs account.

or

Already have an account? Sign in