VegaRise.NET
Back to DOM

TableRowClass

Definition

Namespace
DOM.Elements.TableElements
Assembly
DOM.dll

Represents a single row within a table.

Remarks

A contains multiple elements and provides indexed access, enumeration, addition, removal, and styling capabilities. It corresponds to a <w:tr> element in WordprocessingML and to a <tr> in HTML. TableRow ITableCell Row styling is applied via and can control height, splitting, repeating header rows, and conditional formatting. Style

Examples

csharp
1// 1. Build a row with two cells
2var row = new TableRow();
3row.AddCell(new TableCell()).AddText("Name");
4row.AddCell(new TableCell()).AddText("Value");
5
csharp
1// 2. Index a cell by column
2var cell = row[0];
3cell.AddText("Updated");
4
csharp
1// 3. Apply a header style (repeat on each page)
2row.Style = new TableRowStyle
3{
4 RepeatOnEveryPage = true,
5 Height = new DocumentUnit(0.4, Units.inch),
6};
7
csharp
1// 4. Iterate over all cells in a row
2foreach (var c in row)
3{
4 c.AddText("•");
5}
6

Properties

Gets a collection of all elements contained in this row. ITableCell

Item

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

Gets or sets the style applied to this row.

Methods

Adds a new cell to this row.

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

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

Removes the specified cell from this row.

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

VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.