# DocumentController.GetBlockFieldNames Method

> Gets a list of the names of all the application fields which are contained inside the specified merge block.

- **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.GetBlockFieldNames Method
- **481 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/documentcontroller/getblockfieldnames-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/documentcontroller/getblockfieldnames-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/documentcontroller/getblockfieldnames-method/llms-full.txt

---

### Description

Gets a list of the names of all the application fields which are contained inside the specified merge block.

### Syntax

```csharp
public string[] GetBlockFieldNames(string block);
```

```vbnet
Public Function GetBlockFieldNames(block As String) As String()
```

### Parameters

| Parameter | Description |
|---|---|
| block | Specifies the name of the merge block whose field names are to be returned. |

### Return Value

A list of the fields' names contained in the specified merge block.

### Examples

The following example retrieves block field names from the document controller.

```csharp
string[] results = documentController.GetBlockFieldNames("Quarterly report");
foreach (string text in results)
{
    Console.WriteLine(text);
}
```

```vbnet
Dim results As String() = documentController.GetBlockFieldNames("Quarterly report")
For Each text As String In results
    Console.WriteLine(text)
Next
```

---

## Nearby

- **Previous:** [DocumentController.FieldAdapterCollection.Item Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/documentcontroller-fieldadaptercollection/item-property/llms-full.txt)
- **Next:** [DocumentController.GetBlockNames Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/documentcontroller/getblocknames-method/llms-full.txt)
