# FormattingStyle.Capitals Property

> Gets or sets values specifying wheather lowercase letters are displayed with capital letters. Lowercase letters are displayed either with capital letters of the same size or with capital letters which have a smaller size. The smaller size is either the size of the lowercase 'x' (petite caps) or the size of the lowercase 'x' + 10% (small caps).

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 30.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.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 for WPF > Reference > TXTextControl > FormattingStyle.Capitals Property
- **593 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/capitals-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/capitals-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/capitals-property/llms-full.txt

---

### Description

Gets or sets values specifying wheather lowercase letters are displayed with capital letters. Lowercase letters are displayed either with capital letters of the same size or with capital letters which have a smaller size. The smaller size is either the size of the lowercase 'x' (petite caps) or the size of the lowercase 'x' + 10% (small caps).

### Syntax

```csharp
public Capitals Capitals { get; set; }
```

```vbnet
Public Property Capitals As Capitals
```

### Members

| Value | Description |
|---|---|
| None | There are no text effects with capital letters. |
| Capitals | All lowercase letters are displayed with capital letters. |
| PetiteCapitals | All lowercase letters are displayed with capital letters which have the size of the lowercase 'x'. |
| SmallCapitals | All lowercase letters are displayed with capital letters which have the size of the lowercase 'x' + 10%. |

### Examples

The following example creates a reusable emphasis style and adds it to the document by using `FormattingStyle.Capitals`.

```csharp
FormattingStyle formattingStyle = new InlineStyle("Emphasis");

formattingStyle.Capitals = Capitals.Capitals;
Console.WriteLine($"Capitals used by Formatting Style: {formattingStyle.Capitals}");

textControl.InlineStyles.Add((InlineStyle)formattingStyle);
```

```vbnet
Dim formattingStyle As FormattingStyle = New InlineStyle("Emphasis")

formattingStyle.Capitals = Capitals.Capitals
Console.WriteLine($"Capitals used by Formatting Style: {formattingStyle.Capitals}")

textControl.InlineStyles.Add(DirectCast(formattingStyle, InlineStyle))
```

---

## Nearby

- **Previous:** [FormattingStyle.Bold Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/bold-property/llms-full.txt)
- **Next:** [FormattingStyle.CharacterScaling Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/characterscaling-property/llms-full.txt)
