# TableCollection.GetItem Method

> Gets the table at the current input position. To get a particular table with a certain identifier use the base class's implementation TableBaseCollection.GetItem.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **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 > TableCollection.GetItem Method
- **462 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablecollection/getitem-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablecollection/getitem-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablecollection/getitem-method/llms-full.txt

---

### Description

Gets the table at the current input position. To get a particular table with a certain identifier use the base class's implementation [TableBaseCollection.GetItem](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablebasecollection/getitem-method/llms-full.txt).

### Syntax

```csharp
public Table GetItem();
```

```vbnet
Public Function GetItem() As Table
```

### Return Value

The return value is the requested table. It is null if there is no table at the current input position.

### Examples

The following example works with tables in the current document by using `TableCollection.GetItem`.

```csharp
TableCollection tableCollection = textControl.Tables;
tableCollection.Add(3, 3, 10);

Table result = tableCollection.GetItem(100);
result?.Select();
```

```vbnet
Dim tableCollection As TableCollection = textControl.Tables
tableCollection.Add(3, 3, 10)

Dim result As Table = tableCollection.GetItem(100)
If result IsNot Nothing Then result.Select()
```

---

## Nearby

- **Previous:** [TableCollection.CanAdd Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablecollection/canadd-property/llms-full.txt)
- **Next:** [TableCollection.GridLines Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablecollection/gridlines-property/llms-full.txt)
