# TextControl.TextFields Property

> Gets a collection of all standard text fields contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property's value is an object of the type TextFieldCollection.

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

---

### Description

Gets a collection of all standard text fields contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. 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:** [TextControl.TextFieldLeft Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textfieldleft-event/llms-full.txt)
- **Next:** [TextControl.TextFrameActivated Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textframeactivated-event/llms-full.txt)
