# TextFrame.FormFields Property

> Gets a collection of all form fields contained in a text frame. 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.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 > TextFrame.FormFields Property
- **464 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textframe/formfields-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textframe/formfields-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textframe/formfields-property/llms-full.txt

---

### Description

Gets a collection of all form fields contained in a text frame. 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 applies bold formatting through the text frame's selection by using `TextFrame.FormFields`.

```csharp
Selection formattedSelection = textFrame.Selection;
formattedSelection.Bold = true;
textFrame.Selection = formattedSelection;

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

```vbnet
Dim formattedSelection As Selection = textFrame.Selection
formattedSelection.Bold = True
textFrame.Selection = formattedSelection

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [TextFrame.Find Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textframe/find-method/llms-full.txt)
- **Next:** [TextFrame.Frames Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textframe/frames-property/llms-full.txt)
