# MailMerge.IncludeTextMergingEventArgs.IncludeTextDocument Property

> Sets a byte[] array that contains the complete data of the IncludeText document. The used format is the internal TX Text Control Unicode format.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 15.0
- **Namespace:** `TXTextControl.DocumentServer`
- **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 > MailMerge.IncludeTextMergingEventArgs.IncludeTextDocument Property
- **487 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/mailmerge-includetextmergingeventargs/includetextdocument-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/mailmerge-includetextmergingeventargs/includetextdocument-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/mailmerge-includetextmergingeventargs/includetextdocument-property/llms-full.txt

---

### Description

Sets a byte\[\] array that contains the complete data of the IncludeText document. The used format is the [internal TX Text Control Unicode format](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/binarystreamtype/enumeration/llms-full.txt).

### Syntax

```csharp
public byte[] IncludeTextDocument { get; set; }
```

```vbnet
Public Property IncludeTextDocument As Byte()
```

### Examples

The following example uses `IncludeTextMergingEventArgs.IncludeTextDocument` to configure include text document as part of the include text merging event args workflow. The configured value is checked before the workflow continues.

```csharp
includeTextMergingEventArgs.IncludeTextDocument = new byte[] { 1 };
if (includeTextMergingEventArgs.IncludeTextDocument != null)
{
    Console.WriteLine("Include Text Merging Event Args: Include Text Document is available.");
}
```

```vbnet
includeTextMergingEventArgs.IncludeTextDocument = New Byte() { 1 }
If includeTextMergingEventArgs.IncludeTextDocument IsNot Nothing Then
    Console.WriteLine("Include Text Merging Event Args: Include Text Document is available.")
End If
```

---

## Nearby

- **Previous:** [MailMerge.IncludeTextMergingEventArgs.Filename Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/mailmerge-includetextmergingeventargs/filename-property/llms-full.txt)
- **Next:** [MailMerge.IncludeTextMergingEventArgs.IncludeTextField Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/mailmerge-includetextmergingeventargs/includetextfield-property/llms-full.txt)
