# EditMergeBlocksDialog Constructor

> Creates a EditMergeBlocksDialog object for the specified DocumentServer.DataSources.DataSourceManager.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.DocumentServer.Windows.Forms`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDocumentServer.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.DocumentServer.Windows.Forms > EditMergeBlocksDialog Constructor
- **622 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/editmergeblocksdialog/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/editmergeblocksdialog/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/editmergeblocksdialog/constructor/llms-full.txt

---

### Description

Creates a EditMergeBlocksDialog object for the specified [DocumentServer.DataSources.DataSourceManager](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/datasourcemanager/llms-full.txt).

### Syntax

```csharp
public EditMergeBlocksDialog(DataSourceManager dataSourceManager, object textControl);
```

```vbnet
Public Sub New(dataSourceManager As DataSourceManager, textControl As Object)
```

### Parameters

| Parameter | Description |
|---|---|
| dataSourceManager | Specifies the [DataSourceManager](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/datasourcemanager/llms-full.txt), which manages the current data source. |
| textControl | A [TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/llms-full.txt) or a [ServerTextControl](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/llms-full.txt) instance containing the merge blocks which are shown in the dialog box. |

### Examples

The following example creates an Edit Merge Blocks Dialog instance and configures its allow transparency setting for a document workflow.

```csharp
using TXTextControl.DocumentServer.Windows.Forms.EditMergeBlocksDialog editMergeBlocksDialog = new(new TXTextControl.DocumentServer.DataSources.DataSourceManager(), "Approved");
editMergeBlocksDialog.AllowTransparency = true;
```

```vbnet
Dim editMergeBlocksDialog As New TXTextControl.DocumentServer.Windows.Forms.EditMergeBlocksDialog(New TXTextControl.DocumentServer.DataSources.DataSourceManager(), "Approved")
editMergeBlocksDialog.AllowTransparency = True
```

---

## Nearby

- **Previous:** [EditMergeBlocksDialog Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/editmergeblocksdialog/llms-full.txt)
- **Next:** [FilterAndSortDialog Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/filterandsortdialog/llms-full.txt)
