# ServerTextControl.FormFields Property

> Gets a collection of all form fields contained in the document. The property's value is an object of the type FormFieldCollection.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.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.FormFields Property
- **344 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/formfields-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/formfields-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/formfields-property/llms-full.txt

---

### Description

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

### Syntax

```csharp
public FormFieldCollection FormFields { get; }
```

```vbnet
Public ReadOnly Property FormFields As FormFieldCollection
```

### Examples

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

```csharp
foreach (FormField formField in textControl.FormFields)
{
    formField.DescriptiveText = "Quarterly results";
}
```

```vbnet
For Each formField As FormField In textControl.FormFields
    formField.DescriptiveText = "Quarterly results"
Next
```

### Limitations

Runtime only.

Read only.

---

## Nearby

- **Previous:** [ServerTextControl.FormattingPrinter Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/formattingprinter-property/llms-full.txt)
- **Next:** [ServerTextControl.FormulaReferenceStyle Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/formulareferencestyle-property/llms-full.txt)
