# TableRowCollection.GetItem Method

> Gets a particular table row from the collection.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.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 WPF > Reference > TXTextControl > TableRowCollection.GetItem Method
- **699 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablerowcollection/getitem-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablerowcollection/getitem-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablerowcollection/getitem-method/llms-full.txt

---

### Description

Gets a particular table row from the collection.

### Syntax

#### GetItem()

Gets the table row at the current input position.

```csharp
public TableRow GetItem();
```

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

#### GetItem(int)

Gets the table row with the specified number.

```csharp
public TableRow GetItem(int row);
```

```vbnet
Public Function GetItem(row As Integer) As TableRow
```

| Parameter | Description |
|---|---|
| row | Specifies the row number. It must be between 1 and the value returned through the collection's Count property. |

### Return Value

The return value is the requested row. It is null if the requested row could not be found.

### Examples

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

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

TableRow result = tableRowCollection.GetItem(1);
result?.Select();
```

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

Dim result As TableRow = tableRowCollection.GetItem(1)
If result IsNot Nothing Then result.Select()
```

---

## Nearby

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