# TextFieldCollection.Item Property

> Gets the field with the specified number from the collection. The number must be between 1 and Count. In C# this property is the indexer for the TextFieldCollection class.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **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 > TextFieldCollection.Item Property
- **701 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfieldcollection/item-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfieldcollection/item-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfieldcollection/item-property/llms-full.txt

---

### Description

Gets the field with the specified number from the collection. The number must be between 1 and Count. In C# this property is the indexer for the TextFieldCollection class.

### Syntax

```csharp
public TextField this[int number] { get; }
```

```vbnet
Default Public ReadOnly Property Item(number As Integer) As TextField
```

### Examples

The following example works with text fields in the current document by using `TextFieldCollection.Item`.

```csharp
textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
TextFieldCollection textFieldCollection = textControl.TextFields;
textFieldCollection.Add(new ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", new[] { "CustomerName" }) { ID = 100 });

Console.WriteLine($"Item: {textFieldCollection[10]}");
Console.WriteLine("Text Field Collection is ready for use.");
```

```vbnet
textControl.Text = "Customer: Contoso Ltd."
textControl.Select(10, 12)
Dim textFieldCollection As TextFieldCollection = textControl.TextFields
textFieldCollection.Add(New ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", New String() { "CustomerName" }) With { .ID = 100 })

Console.WriteLine($"Item: {textFieldCollection.Item(10)}")
Console.WriteLine("Text Field Collection is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TextFieldCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfieldcollection/getitem-method/llms-full.txt)
- **Next:** [TextFieldCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfieldcollection/remove-method/llms-full.txt)
