# Table.Select Method

> Selects the table or a part of the table.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 10.1
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > Table.Select Method
- **798 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/table/select-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/table/select-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/table/select-method/llms-full.txt

---

### Description

Selects the table or a part of the table.

### Syntax

#### Select()

Selects the complete table.

```csharp
public void Select();
```

```vbnet
Public Sub [Select]()
```

#### Select(int, int, int, int)

Selects the part of the table defined through two table cells.

```csharp
public void Select(int startRow, int startColumn, int stopRow, int stopColumn);
```

```vbnet
Public Sub [Select](startRow As Integer, startColumn As Integer, stopRow As Integer, stopColumn As Integer)
```

| Parameter | Description |
|---|---|
| startRow | Specifies the row number where the selection begins. |
| startColumn | Specifies the column number where the selection begins. |
| stopRow | Specifies the row number where the selection ends. |
| stopColumn | Specifies the column number where the selection ends. |

### Examples

The following example selects rows two and three of a table and applies bold formatting to their text.

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

table.Select(2, 1, 3, 3);
textControl.Selection.Bold = true;
```

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

table.Select(2, 1, 3, 3)
textControl.Selection.Bold = True
```

---

## Nearby

- **Previous:** [Table.Rows Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/table/rows-property/llms-full.txt)
- **Next:** [Table.Split Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/table/split-method/llms-full.txt)
