# ServerTextControl.TextFields Property

> Gets a collection of all standard text fields contained in the main text of the document. The property's value is an object of the type TextFieldCollection.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 12.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > ServerTextControl.TextFields Property
- **352 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/textfields-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/textfields-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/textfields-property/llms-full.txt

---

### Description

Gets a collection of all standard text fields contained in the main text of the document. The property's value is an object of the type [TextFieldCollection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfieldcollection/llms-full.txt).

### Syntax

```csharp
public TextFieldCollection TextFields { get; }
```

```vbnet
Public ReadOnly Property TextFields As TextFieldCollection
```

### Examples

The following example iterates through the text fields collection and processes each text field.

```csharp
foreach (TextField textField in textControl.TextFields)
{
    textField.Text = "Quarterly results";
}
```

```vbnet
For Each textField As TextField In textControl.TextFields
    textField.Text = "Quarterly results"
Next
```

### Limitations

Runtime only.

Read only.

---

## Nearby

- **Previous:** [ServerTextControl.TextFieldDeleted Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/textfielddeleted-event/llms-full.txt)
- **Next:** [ServerTextControl.TextFrameCreated Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/textframecreated-event/llms-full.txt)
