# 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 WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 16.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.TextFields Property
- **363 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textfields-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textfields-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/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-wpf/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-wpf/reference/txtextcontrol-wpf/textcontrol/textfieldleft-event/llms-full.txt)
- **Next:** [TextControl.TextFrameActivated Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textframeactivated-event/llms-full.txt)
