# TableColumnCollection.GetItem Method

> Gets a particular table column 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 > TableColumnCollection.GetItem Method
- **712 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablecolumncollection/getitem-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablecolumncollection/getitem-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablecolumncollection/getitem-method/llms-full.txt

---

### Description

Gets a particular table column from the collection.

### Syntax

#### GetItem()

Gets the table column at the current input position.

```csharp
public TableColumn GetItem();
```

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

#### GetItem(int)

Gets the table column with the specified number.

```csharp
public TableColumn GetItem(int column);
```

```vbnet
Public Function GetItem(column As Integer) As TableColumn
```

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

### Return Value

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

### Examples

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

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

TableColumn result = tableColumnCollection.GetItem(1);
result?.Select();
```

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

Dim result As TableColumn = tableColumnCollection.GetItem(1)
If result IsNot Nothing Then result.Select()
```

---

## Nearby

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