# MergeSettings.AsSingleDocument Property

> Specifies whether to combine the merge result to a single document. If this is set to true, each merge result is separated from the previous one by a section break and starts at a new page. The default value is false.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 31.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 > MergeSettings.AsSingleDocument Property
- **395 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/mergesettings/assingledocument-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/mergesettings/assingledocument-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/mergesettings/assingledocument-property/llms-full.txt

---

### Description

Specifies whether to combine the merge result to a single document. If this is set to true, each merge result is separated from the previous one by a section break and starts at a new page. The default value is false.

### Syntax

```csharp
public bool AsSingleDocument { get; set; }
```

```vbnet
Public Property AsSingleDocument As Boolean
```

### Examples

The following example uses `MergeSettings.AsSingleDocument` to configure as single document as part of the merge settings workflow. The configured value is checked before the workflow continues.

```csharp
mergeSettings.AsSingleDocument = true;
if (mergeSettings.AsSingleDocument)
{
    Console.WriteLine("Merge Settings: As Single Document is enabled.");
}
```

```vbnet
mergeSettings.AsSingleDocument = True
If mergeSettings.AsSingleDocument Then
    Console.WriteLine("Merge Settings: As Single Document is enabled.")
End If
```

---

## Nearby

- **Previous:** [MergeSettings Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/mergesettings/llms-full.txt)
- **Next:** [MergeSettings Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/mergesettings/constructor/llms-full.txt)
