# MailMerge.BlockMergingEventArgs.ColumnNames Property

> Gets the column names of the table supplying the data for the block.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.DocumentServer`
- **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 > MailMerge.BlockMergingEventArgs.ColumnNames Property
- **346 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver/mailmerge-blockmergingeventargs/columnnames-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver/mailmerge-blockmergingeventargs/columnnames-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver/mailmerge-blockmergingeventargs/columnnames-property/llms-full.txt

---

### Description

Gets the column names of the table supplying the data for the block.

### Syntax

```csharp
public string[] ColumnNames { get; }
```

```vbnet
Public ReadOnly Property ColumnNames As String()
```

### Examples

The following example iterates through the column names collection and processes each string.

```csharp
foreach (string text in blockMergingEventArgs.ColumnNames)
{
    Console.WriteLine(text.Length);
}
```

```vbnet
For Each text As String In blockMergingEventArgs.ColumnNames
    Console.WriteLine(text.Length)
Next
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [MailMerge.BlockMergingEventArgs.BlockName Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver/mailmerge-blockmergingeventargs/blockname-property/llms-full.txt)
- **Next:** [MailMerge.BlockMergingEventArgs.SubTextPartID Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver/mailmerge-blockmergingeventargs/subtextpartid-property/llms-full.txt)
