# DataTableInfoCollection.Item Method

> Gets a DataTableInfo instance from the collection. In C# this property is the indexer for the DataTableInfoCollection class.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.DocumentServer.DataSources`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.DocumentServer.DataSources > DataTableInfoCollection.Item Method
- **622 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datatableinfocollection/item-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datatableinfocollection/item-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datatableinfocollection/item-method/llms-full.txt

---

### Description

Gets a [DataTableInfo](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datatableinfo/llms-full.txt) instance from the collection. In C# this property is the indexer for the DataTableInfoCollection class.

### Syntax

#### this\[string\]

```csharp
public DataTableInfo this[string name] { get; }
```

```vbnet
Default Public ReadOnly Property Item(name As String) As DataTableInfo
```

#### this\[int\]

```csharp
public DataTableInfo this[int index] { get; }
```

```vbnet
Default Public ReadOnly Property Item(index As Integer) As DataTableInfo
```

### Parameters

| Parameter | Description |
|---|---|
| index | The 0-based index. |
| name | The table name. |

### Return Value

The [DataTableInfo](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datatableinfo/llms-full.txt) object at the given index / with the given name in the collection.

### Examples

The following example includes the item value in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Item: {dataTableInfoCollection["CustomerName"]}");
Console.WriteLine("Data Table Info Collection is ready for use.");
```

```vbnet
Console.WriteLine($"Item: {dataTableInfoCollection.Item("CustomerName")}")
Console.WriteLine("Data Table Info Collection is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [DataTableInfoCollection.IsReadOnly Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datatableinfocollection/isreadonly-property/llms-full.txt)
- **Next:** [DialogResult Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/dialogresult/enumeration/llms-full.txt)
