# MergeBlockInfo Constructor

> Initializes a new instance of the MergeBlockInfo class.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.DocumentServer.DataSources`
- **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.DataSources > MergeBlockInfo Constructor
- **660 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/constructor/llms-full.txt

---

### Description

Initializes a new instance of the MergeBlockInfo class.

### Syntax

#### MergeBlockInfo(string)

Initializes a new instance of the MergeBlockInfo class and sets the table name.

```csharp
public MergeBlockInfo(string tableName);
```

```vbnet
Public Sub New(tableName As String)
```

| Parameter | Description |
|---|---|
| tableName | The name of the table which is the data source for this merge block. |

#### MergeBlockInfo(SubTextPart)

Initializes a new instance of the MergeBlockInfo class from an existing [SubTextPart](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/subtextpart/llms-full.txt) already containing merge block meta data (i. e. filter and sorting instructions and a possible block merging condition).

```csharp
public MergeBlockInfo(SubTextPart subTextPart);
```

```vbnet
Public Sub New(subTextPart As SubTextPart)
```

| Parameter | Description |
|---|---|
| subTextPart | A [SubTextPart](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/subtextpart/llms-full.txt) instance containing merge block meta data (i. e. filter and sorting instructions and a possible block merging condition). |

### Examples

The following example creates a Merge Block Info instance for a document-processing operation. The created object is then available to the surrounding document workflow.

```csharp
TXTextControl.DocumentServer.DataSources.MergeBlockInfo mergeBlockInfo = new("CustomerName");
Console.WriteLine("Merge Block Info is ready for use.");
```

```vbnet
Dim mergeBlockInfo As New TXTextControl.DocumentServer.DataSources.MergeBlockInfo("CustomerName")
Console.WriteLine("Merge Block Info is ready for use.")
```

---

## Nearby

- **Previous:** [MergeBlockInfo.ColumnNames Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/columnnames-property/llms-full.txt)
- **Next:** [MergeBlockInfo.Filters Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/filters-property/llms-full.txt)
