# ServerTextControl.Tables Property

> Gets a collection of all tables contained in the document. The property's value is an object of the type TableCollection.

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

---

### Description

Gets a collection of all tables contained in the document. The property's value is an object of the type [TableCollection](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablecollection/llms-full.txt).

### Syntax

```csharp
public TableCollection Tables { get; }
```

```vbnet
Public ReadOnly Property Tables As TableCollection
```

### Examples

The following example creates a table and fills each cell with its row and column coordinates.

```csharp
textControl.Tables.Add(2, 3, 10);

foreach (TableCell cell in textControl.Tables[1].Cells)
{
    cell.Text = $"Row {cell.Row}, column {cell.Column}";
}
```

```vbnet
textControl.Tables.Add(2, 3, 10)

For Each cell As TableCell In textControl.Tables(1).Cells
    cell.Text = $"Row {cell.Row}, column {cell.Column}"
Next
```

### Limitations

Runtime only.

Read only.

---

## Nearby

- **Previous:** [ServerTextControl.TableOfContentsDeleted Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/tableofcontentsdeleted-event/llms-full.txt)
- **Next:** [ServerTextControl.TablesOfContents Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/tablesofcontents-property/llms-full.txt)
