# TextControl.ApplicationFields Property

> Gets a collection of all application fields contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. Application fields are Microsoft Word or Heiler HighEdit fields that have been created or imported from a Microsoft Word or RTF document. The property value is an object of the type ApplicationFieldCollection. Before loading a document the LoadSettings.ApplicationFieldFormat property must be set, otherwise this collection is empty. The collection contains the fields of the text part with the input focus. This can be the main text, a text frame or a header or footer.

- **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.ApplicationFields Property
- **485 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/applicationfields-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/applicationfields-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/applicationfields-property/llms-full.txt

---

### Description

Gets a collection of all application fields contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. Application fields are Microsoft Word or Heiler HighEdit fields that have been created or imported from a Microsoft Word or RTF document. The property value is an object of the type [ApplicationFieldCollection](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/applicationfieldcollection/llms-full.txt). Before loading a document the [LoadSettings.ApplicationFieldFormat](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/loadsettings/applicationfieldformat-property/llms-full.txt) property must be set, otherwise this collection is empty. The collection contains the fields of the text part with the input focus. This can be the main text, a text frame or a header or footer.

### Syntax

```csharp
public ApplicationFieldCollection ApplicationFields { get; }
```

```vbnet
Public ReadOnly Property ApplicationFields As ApplicationFieldCollection
```

### Examples

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

```csharp
foreach (ApplicationField applicationField in textControl.ApplicationFields)
{
    applicationField.Text = "Quarterly results";
}
```

```vbnet
For Each applicationField As ApplicationField In textControl.ApplicationFields
    applicationField.Text = "Quarterly results"
Next
```

### Limitations

Runtime only.

Read only.

### See Also

Text Fields and Hypertext Links - Hypertext Links.

---

## Nearby

- **Previous:** [TextControl.Append Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/append-method/llms-full.txt)
- **Next:** [TextControl.AutoControlSize Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/autocontrolsize-property/llms-full.txt)
