# IncludeText Constructor

> Initializes a new instance of the IncludeText class.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 15.0
- **Namespace:** `TXTextControl.DocumentServer.Fields`
- **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.Fields > IncludeText Constructor
- **485 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/includetext/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/includetext/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/includetext/constructor/llms-full.txt

---

### Description

Initializes a new instance of the IncludeText class.

### Syntax

#### IncludeText()

Initializes a complete new instance of the IncludeText class without a connection to an existing ApplicationField.

```csharp
public IncludeText();
```

```vbnet
Public Sub New()
```

#### IncludeText(ApplicationField)

Initializes a new instance of the IncludeText class with a connection to an existing ApplicationField.

```csharp
public IncludeText(ApplicationField appField);
```

```vbnet
Public Sub New(appField As ApplicationField)
```

| Parameter | Description |
|---|---|
| appField | Specifies the ApplicationField to be adapted. |

### 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"
```

---

## Nearby

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