# TableRow Class

> An instance of the TableRow class represents a single row of a table in a Text Control document. It can be obtained from the table's row collection.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > TableRow Class
- **1229 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablerow/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablerow/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablerow/llms-full.txt

---

### Description

An instance of the TableRow class represents a single row of a table in a Text Control document. It can be obtained from the table's row collection.

### Syntax

```csharp
public class TableRow
```

```vbnet
Public Class TableRow
```

### Examples

The following example shows how to handle table rows.

```csharp
TXTextControl.TableCellFormat myCellFormat = new TXTextControl.TableCellFormat();
myCellFormat.BackColor = System.Drawing.Color.LightGreen;
myCellFormat.BottomBorderWidth = 40;

TXTextControl.TableRow myRow = myTable.Rows.GetItem(1);
myRow.MinimumHeight = 1440; // 1 inch
myRow.AllowPageBreak = false;
myRow.CellFormat = myCellFormat;
```

```vbnet
Dim MyCellFormat As New TXTextControl.TableCellFormat()
MyCellFormat.BackColor = System.Drawing.Color.LightGreen
MyCellFormat.BottomBorderWidth = 40

Dim MyRow As TXTextControl.TableRow = MyTable.Rows.GetItem(1)
MyRow.MinimumHeight = 1440 ' 1 inch
MyRow.AllowPageBreak = False
MyRow.CellFormat = MyCellFormat
```

The following example creates a small report table and works with its structure.

```csharp
textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableRow tableRow = table.Rows[1];
```

```vbnet
textControl.Tables.Add(3, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)
Dim tableRow As TableRow = table.Rows(1)
```

---

## In This Section

- [TableRow.AllowPageBreak Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablerow/allowpagebreak-property/llms-full.txt): Gets or sets a value specifying how the table row is formatted at page breaks. The property value is True, if the table row can be formatted across page breaks. The property value is False, if the table row must not be formatted across page breaks.
- [TableRow.CellFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablerow/cellformat-property/llms-full.txt): Gets or sets the formatting attributes of a table row. The property's value is an object of the type TableCellFormat.
- [TableRow.IsHeader Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablerow/isheader-property/llms-full.txt): Gets or sets a value specifying whether the table row is part of the table's header. The property value is true, if the table row belongs to the header. Otherwise, it is false. A table header consists of one or more table rows which are repeated on top of each page when a single table extends over several pages.
- [TableRow.MinimumHeight Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablerow/minimumheight-property/llms-full.txt): Gets or sets the minimum height, in twips, of the table row. The table row is formatted with this height if the text is smaler. Otherwise the row grows as necessary. If the property value is zero, the table row's height is always determined through the containing text.
- [TableRow.Row Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablerow/row-property/llms-full.txt): Gets the number of the table row represented through this table row object.
- [TableRow.Select Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablerow/select-method/llms-full.txt): Selects the table row.

---

## Nearby

- **Previous:** [TablePartCollection.SyncRoot Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablepartcollection/syncroot-property/llms-full.txt)
- **Next:** [TableRow.AllowPageBreak Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablerow/allowpagebreak-property/llms-full.txt)
