# ApplicationFieldCollection.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 ApplicationFieldCollection class.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl > ApplicationFieldCollection.Item Property
- **740 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/applicationfieldcollection/item-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/applicationfieldcollection/item-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/applicationfieldcollection/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 ApplicationFieldCollection class.

### Syntax

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

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

### Examples

The following example updates the first application field after checking that the collection is not empty.

```csharp
textControl.Text = "Dear ,";
textControl.InputPosition = new InputPosition(5);
ApplicationFieldCollection fields = textControl.ApplicationFields;
ApplicationField customerField = new(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", new[] { "CustomerName" }) { ID = 100 };
fields.Add(customerField);
if (fields.Count > 0)
{
    fields[1].Text = "Contoso Ltd.";
}
```

```vbnet
textControl.Text = "Dear ,"
textControl.InputPosition = New InputPosition(5)
Dim fields As ApplicationFieldCollection = textControl.ApplicationFields
Dim customerField As New ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", New String() { "CustomerName" }) With { .ID = 100 }
fields.Add(customerField)
If fields.Count > 0 Then
    fields.Item(1).Text = "Contoso Ltd."
End If
```

### Limitations

Read only.

---

## Nearby

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