# IncludeText.TextFormat Property

> Gets and sets the text format of the field.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **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.TextFormat Property
- **454 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/includetext/textformat-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/includetext/textformat-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/includetext/textformat-property/llms-full.txt

---

### Description

Gets and sets the text format of the field.

### Syntax

```csharp
public TextFormatOptions TextFormat { get; set; }
```

```vbnet
Public Property TextFormat As TextFormatOptions
```

### Members

| Value | Description |
|---|---|
| Uppercase | The text is displayed in uppercase. |
| Lowercase | The text is displayed in lowercase. |
| FirstCapital | The first character is displayed in uppercase. |
| TitleCase | The text is displayed in title case. |
| None | The text is displayed with a special format. |

### Examples

The following example uses `IncludeText.TextFormat` to configure text format as part of the include text workflow. The configured value is checked before the workflow continues.

```csharp
includeText.TextFormat = TXTextControl.DocumentServer.Fields.TextFormatOptions.Uppercase;
Console.WriteLine($"Text Format used by Include Text: {includeText.TextFormat}");
```

```vbnet
includeText.TextFormat = TXTextControl.DocumentServer.Fields.TextFormatOptions.Uppercase
Console.WriteLine($"Text Format used by Include Text: {includeText.TextFormat}")
```

---

## Nearby

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