# MergeBlockInfo.ColumnNames Property

> Gets or sets the list of data column names which represent the merge fields this merge block consists of.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.DocumentServer.DataSources`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl.DocumentServer.DataSources > MergeBlockInfo.ColumnNames Property
- **313 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/columnnames-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/columnnames-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/columnnames-property/llms-full.txt

---

### Description

Gets or sets the list of data column names which represent the merge fields this merge block consists of.

### Syntax

```csharp
public List<string> ColumnNames { get; set; }
```

```vbnet
Public Property ColumnNames As List(Of String)
```

### Examples

The following example uses `MergeBlockInfo.ColumnNames` to configure column names as part of the merge block info workflow. The change is then applied to the active document or user interface.

```csharp
mergeBlockInfo.ColumnNames = new List<string>();
mergeBlockInfo.Apply();
```

```vbnet
mergeBlockInfo.ColumnNames = New List(Of String)()
mergeBlockInfo.Apply()
```

---

## Nearby

- **Previous:** [MergeBlockInfo.ChildBlocks Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/childblocks-property/llms-full.txt)
- **Next:** [MergeBlockInfo Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/constructor/llms-full.txt)
