# TableCellCollection.GetItem Method

> Gets a particular table cell from the collection.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **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 > TableCellCollection.GetItem Method
- **775 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecellcollection/getitem-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecellcollection/getitem-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecellcollection/getitem-method/llms-full.txt

---

### Description

Gets a particular table cell from the collection.

### Syntax

#### GetItem()

Gets the table cell at the current input position.

```csharp
public TableCell GetItem();
```

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

#### GetItem(int, int)

Gets the cell with the specified row and column number.

```csharp
public TableCell GetItem(int row, int column);
```

```vbnet
Public Function GetItem(row As Integer, column As Integer) As TableCell
```

| Parameter | Description |
|---|---|
| row | Specifies the row number. It must be between 1 and the value returned through the TableRowCollection.Count property. |
| column | Specifies the column number. It must be between 1 and the value returned through the TableColumnCollection.Count property. |

### Return Value

The return value is the requested cell.

### Examples

The following example creates a small report table and works with its structure by using `TableCellCollection.GetItem`.

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

TableCell result = tableCellCollection.GetItem(1, 1);
result?.Select();
```

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

Dim result As TableCell = tableCellCollection.GetItem(1, 1)
If result IsNot Nothing Then result.Select()
```

---

## Nearby

- **Previous:** [TableCellCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecellcollection/copyto-method/llms-full.txt)
- **Next:** [TableCellCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecellcollection/remove-method/llms-full.txt)
