# DocumentController.GetFieldNames Method

> Get field names.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 15.0
- **Namespace:** `TXTextControl.DocumentServer`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.DocumentServer > DocumentController.GetFieldNames Method
- **365 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/documentcontroller/getfieldnames-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/documentcontroller/getfieldnames-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/documentcontroller/getfieldnames-method/llms-full.txt

---

### Description

Get field names.

### Syntax

```csharp
public string[] GetFieldNames();
```

```vbnet
Public Function GetFieldNames() As String()
```

### Return Value

Returns a list of the names of the application fields in the loaded document.

### Examples

The following example retrieves field names from the document controller.

```csharp
string[] results = documentController.GetFieldNames();
foreach (string text in results)
{
    Console.WriteLine(text);
}
```

```vbnet
Dim results As String() = documentController.GetFieldNames()
For Each text As String In results
    Console.WriteLine(text)
Next
```

---

## Nearby

- **Previous:** [DocumentController.GetFieldAdapters Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/documentcontroller/getfieldadapters-method/llms-full.txt)
- **Next:** [DocumentController.Load Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/documentcontroller/load-method/llms-full.txt)
