# ApplicationField.Format Property

> Gets or sets the field's format. The property's value can be one of the ApplicationFieldFormat values. If the format of the field is changed, its type name and parameters must also be changed.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 14.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > ApplicationField.Format Property
- **715 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/applicationfield/format-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/applicationfield/format-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/applicationfield/format-property/llms-full.txt

---

### Description

Gets or sets the field's format. The property's value can be one of the [ApplicationFieldFormat](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/applicationfieldformat/enumeration/llms-full.txt) values. If the format of the field is changed, its type name and parameters must also be changed.

### Syntax

```csharp
public ApplicationFieldFormat Format { get; set; }
```

```vbnet
Public Property Format As ApplicationFieldFormat
```

### Members

| Value | Description |
|---|---|
| MSWord | The field is supported and defined through Microsoft Word. |
| HighEdit | The field is supported and defined through the Heiler HighEdit component. |

### Examples

The following example inserts and configures a Word-compatible mail-merge field by using `ApplicationField.Format`.

```csharp
textControl.Text = "Dear Customer";
textControl.InputPosition = new InputPosition(5);
ApplicationField applicationField = new(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer", new[] { "CustomerName" });
textControl.ApplicationFields.Add(applicationField);

applicationField.Format = ApplicationFieldFormat.MSWord;
Console.WriteLine($"Format used by Application Field: {applicationField.Format}");
```

```vbnet
textControl.Text = "Dear Customer"
textControl.InputPosition = New InputPosition(5)
Dim applicationField As New ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer", New String() { "CustomerName" })
textControl.ApplicationFields.Add(applicationField)

applicationField.Format = ApplicationFieldFormat.MSWord
Console.WriteLine($"Format used by Application Field: {applicationField.Format}")
```

---

## Nearby

- **Previous:** [ApplicationField Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/applicationfield/constructor/llms-full.txt)
- **Next:** [ApplicationField.Parameters Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/applicationfield/parameters-property/llms-full.txt)
