# IncludeText Class

> The IncludeText class implements the MS Word specific INCLUDETEXT field. This field must be used in combination with an ApplicationField that should be modified using this adapter.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 15.0
- **Namespace:** `TXTextControl.DocumentServer.Fields`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXDocumentServer.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Inherits:** `TXTextControl.DocumentServer.Fields.FieldAdapter` › `TXTextControl.DocumentServer.Fields.MailMergeFieldAdapter`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.DocumentServer.Fields > IncludeText Class
- **829 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/includetext/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/includetext/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/includetext/llms-full.txt

---

### Description

The IncludeText class implements the MS Word specific INCLUDETEXT field. This field must be used in combination with an [ApplicationField](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/applicationfield/llms-full.txt) that should be modified using this adapter.

### Syntax

```csharp
public sealed class IncludeText : MailMergeFieldAdapter
```

```vbnet
Public NotInheritable Class IncludeText
    Inherits MailMergeFieldAdapter
```

### Examples

The following example creates an Include Text instance and configures its filename setting for a document workflow.

```csharp
TXTextControl.DocumentServer.Fields.IncludeText includeText = new();
includeText.Filename = "document.docx";
```

```vbnet
Dim includeText As New TXTextControl.DocumentServer.Fields.IncludeText()
includeText.Filename = "document.docx"
```

---

## In This Section

- [IncludeText.Bookmark Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/includetext/bookmark-property/llms-full.txt): Gets and sets the bookmark switch of the field.
- [IncludeText Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/includetext/constructor/llms-full.txt): Initializes a new instance of the IncludeText class.
- [IncludeText.Filename Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/includetext/filename-property/llms-full.txt): Gets and sets the file name of the document that should be inserted. In the MailMerge component, the search path for the documents can be set using the DocumentServer.MailMerge.SearchPath property.
- [IncludeText.TextFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/includetext/textformat-property/llms-full.txt): Gets and sets the text format of the field.

---

## Nearby

- **Previous:** [IfField.TrueText Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/iffield/truetext-property/llms-full.txt)
- **Next:** [IncludeText.Bookmark Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/includetext/bookmark-property/llms-full.txt)
