# FormattingStyle.CharacterSpacing Property

> Gets or sets the style's character spacing value, in twips. This value is added to each character. When it is negative, character spacing is reduced, otherwise it is extended.

- **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.CharacterSpacing Property
- **448 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/characterspacing-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/characterspacing-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/characterspacing-property/llms-full.txt

---

### Description

Gets or sets the style's character spacing value, in twips. This value is added to each character. When it is negative, character spacing is reduced, otherwise it is extended.

### Syntax

```csharp
public int CharacterSpacing { get; set; }
```

```vbnet
Public Property CharacterSpacing As Integer
```

### Examples

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

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

formattingStyle.CharacterSpacing = 720;
Console.WriteLine($"Character Spacing used by Formatting Style: {formattingStyle.CharacterSpacing}");

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

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

formattingStyle.CharacterSpacing = 720
Console.WriteLine($"Character Spacing used by Formatting Style: {formattingStyle.CharacterSpacing}")

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

---

## Nearby

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