# FormattingStyle.CharacterScaling Property

> Gets or sets the style's character scaling, in percent of the average character width.

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

---

### Description

Gets or sets the style's character scaling, in percent of the average character width.

### Syntax

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

```vbnet
Public Property CharacterScaling As Integer
```

### Examples

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

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

formattingStyle.CharacterScaling = 10;
Console.WriteLine($"Character Scaling used by Formatting Style: {formattingStyle.CharacterScaling}");

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

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

formattingStyle.CharacterScaling = 10
Console.WriteLine($"Character Scaling used by Formatting Style: {formattingStyle.CharacterScaling}")

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

---

## Nearby

- **Previous:** [FormattingStyle.Capitals Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formattingstyle/capitals-property/llms-full.txt)
- **Next:** [FormattingStyle.CharacterSpacing Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formattingstyle/characterspacing-property/llms-full.txt)
