# CapitalizationSettings Enumeration

> Determines the settings used with the Selection.ChangeCapitalization method. The enumeration contains the following values:

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 30.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 > CapitalizationSettings Enumeration
- **516 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/capitalizationsettings/enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/capitalizationsettings/enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/capitalizationsettings/enumeration/llms-full.txt

---

### Description

Determines the settings used with the [Selection.ChangeCapitalization](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/selection/changecapitalization-method/llms-full.txt) method. The enumeration contains the following values:

### Syntax

```csharp
public enum CapitalizationSettings
```

```vbnet
Public Enum CapitalizationSettings
```

### Members

| Member | Value | Description |
|---|---|---|
| CapitalizeEachSentence | 4 | The first letter of each sentence is capitalized. |
| CapitalizeEachWord | 3 | The first letter of each word is capitalized. |
| ToLower | 2 | All letters are changed to lowercase. |
| ToUpper | 1 | All letters are changed to uppercase. |
| ToggleCase | 5 | Lowercase letters are changed to uppercase and vice versa. |

### Examples

The following example selects the To Upper value from the Capitalization Settings enumeration and uses it as a documented workflow choice.

```csharp
CapitalizationSettings value = CapitalizationSettings.ToUpper;
Console.WriteLine($"Using Capitalization Settings: {value}");
```

```vbnet
Dim value As CapitalizationSettings = CapitalizationSettings.ToUpper
Console.WriteLine($"Using Capitalization Settings: {value}")
```

---

## Nearby

- **Previous:** [CannotTrackChangeEventArgs.Handled Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/cannottrackchangeeventargs/handled-property/llms-full.txt)
- **Next:** [CheckFormField Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/checkformfield/llms-full.txt)
