# Table.Rows Property

> Gets a collection of all rows the table consists of. The property's value is an object of the type TableRowCollection.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl > Table.Rows Property
- **539 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/table/rows-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/table/rows-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/table/rows-property/llms-full.txt

---

### Description

Gets a collection of all rows the table consists of. The property's value is an object of the type [TableRowCollection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablerowcollection/llms-full.txt).

### Syntax

```csharp
public TableRowCollection Rows { get; }
```

```vbnet
Public ReadOnly Property Rows As TableRowCollection
```

### Examples

The following example marks the first row as a repeating header and gives every row a minimum height of 400 twips.

```csharp
textControl.Tables.Add(4, 3, 10);
Table table = textControl.Tables.GetItem(10);

table.Rows.GetItem(1).IsHeader = true;

foreach (TableRow row in table.Rows)
{
    row.MinimumHeight = 400;
}
```

```vbnet
textControl.Tables.Add(4, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)

table.Rows.GetItem(1).IsHeader = True

For Each row As TableRow In table.Rows
    row.MinimumHeight = 400
Next
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [Table.OuterTable Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/table/outertable-property/llms-full.txt)
- **Next:** [Table.Select Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/table/select-method/llms-full.txt)
