# NextField Class

> The NextField class implements the MS Word specific NEXT 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:** 20.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 > NextField Class
- **641 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/nextfield/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/nextfield/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/nextfield/llms-full.txt

---

### Description

The NextField class implements the MS Word specific NEXT 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 NextField : MailMergeFieldAdapter
```

```vbnet
Public NotInheritable Class NextField
    Inherits MailMergeFieldAdapter
```

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

---

## In This Section

- [NextField Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/nextfield/constructor/llms-full.txt): Initializes a new instance of the NextField class.

---

## Nearby

- **Previous:** [MergeField.VerticalFormatting Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/mergefield/verticalformatting-property/llms-full.txt)
- **Next:** [NextField Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/nextfield/constructor/llms-full.txt)
