# NextField Constructor

> Initializes a new instance of the NextField class.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 20.0
- **Namespace:** `TXTextControl.DocumentServer.Fields`
- **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.Fields > NextField Constructor
- **481 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/nextfield/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/nextfield/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/nextfield/constructor/llms-full.txt

---

### Description

Initializes a new instance of the NextField class.

### Syntax

#### NextField()

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

```csharp
public NextField();
```

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

#### NextField(ApplicationField)

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

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

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

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

### Examples

The following example creates a Next Field instance and configures its preserve formatting setting for a document workflow.

```csharp
TXTextControl.DocumentServer.Fields.NextField nextField = new();
nextField.PreserveFormatting = true;
```

```vbnet
Dim nextField As New TXTextControl.DocumentServer.Fields.NextField()
nextField.PreserveFormatting = True
```

---

## Nearby

- **Previous:** [NextField Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/nextfield/llms-full.txt)
- **Next:** [NextIfField Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/nextiffield/llms-full.txt)
