# FileFormat Enumeration

> Determines a certain text format. These formats can be used to load templates containing text fields of type ApplicationField. The enumeration contains the following values:

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Enumeration
- **Namespace:** `TXTextControl.DocumentServer`
- **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 > FileFormat Enumeration
- **526 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/fileformat/enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/fileformat/enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/fileformat/enumeration/llms-full.txt

---

### Description

Determines a certain text format. These formats can be used to load templates containing text fields of type [ApplicationField](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/applicationfield/llms-full.txt). The enumeration contains the following values:

### Syntax

```csharp
public enum FileFormat
```

```vbnet
Public Enum FileFormat
```

### Members

| Member | Value | Description |
|---|---|---|
| MSWord | 0 | Specifies Microsoft Word format. |
| RichTextFormat | 1 | Specifies RTF format (Rich Text Format). |
| WordprocessingML | 2 | Specifies Microsoft Office Open XML format. |
| InternalUnicodeFormat | 3 | Specifies the internal TX Text Control format. Text is stored in Unicode format. |

### Examples

The following example selects the MSWord value from the File Format enumeration and uses it as a documented workflow choice.

```csharp
TXTextControl.DocumentServer.FileFormat value = TXTextControl.DocumentServer.FileFormat.MSWord;
Console.WriteLine($"Using File Format: {value}");
```

```vbnet
Dim value As TXTextControl.DocumentServer.FileFormat = TXTextControl.DocumentServer.FileFormat.MSWord
Console.WriteLine($"Using File Format: {value}")
```

---

## Nearby

- **Previous:** [DocumentController.Twips2Pixels Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/documentcontroller/twips2pixels-method/llms-full.txt)
- **Next:** [MailMerge Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/mailmerge/llms-full.txt)
