TableRow
TableRow class represents a single row in a Table. Each row contains a collection of TableCell instances.
Inserting a TableRow
You can easily add a TableRow instance by using the AddTableRow() method of the Table class.
The code snippet in Example 1 shows how to create a table and add a single row to it.
Example 1: Create TableRow
Using TableCellCollection
In order to manipulate the cells in a row you can use TableRow's Cells property. The property represents the collection of cells added to this row and provides easy access to each of them.
Example 2 shows how to add two cells in a row and get the cells count.
Example 2: Access cells in a TableRow
Setting TableRow Height
Since Q1 2025 you can easily configure the TablRow's height through its Height property which accepts the following options defined in the HeightType enum:
Auto: Automatically determines the row height.
Exact: Sets an exact row height. The value is in Device Independent Pixels (DIPs).
AtLeast: Sets a minimum row height. The value is in Device Independent Pixels (DIPs).
Example 3 creates a table with three single-cell rows, each with a different HeightType.