# TextControl.FormattingStyleChanged Event

> Occurs after formatting attributes of one or more formatting styles have been changed. The event handler receives an argument of type EventArgs containing data related to this event.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Event
- **Introduced:** 29.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.FormattingStyleChanged Event
- **314 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/formattingstylechanged-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/formattingstylechanged-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/formattingstylechanged-event/llms-full.txt

---

### Description

Occurs after formatting attributes of one or more formatting styles have been changed. The event handler receives an argument of type EventArgs containing data related to this event.

### Syntax

```csharp
public event EventHandler FormattingStyleChanged;
```

```vbnet
Public Event FormattingStyleChanged As EventHandler
```

### Examples

The following example records useful context when formatting style changed occurs.

```csharp
textControl.FormattingStyleChanged += (sender, e) =>
{
    Console.WriteLine($"Formatting Style Changed at {DateTime.Now:u}");
};
```

```vbnet
AddHandler textControl.FormattingStyleChanged,
    Sub(sender, e)
        Console.WriteLine($"Formatting Style Changed at {DateTime.Now:u}")
    End Sub
```

---

## Nearby

- **Previous:** [TextControl.FormattingPrinter Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/formattingprinter-property/llms-full.txt)
- **Next:** [TextControl.FormattingStyleListChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/formattingstylelistchanged-event/llms-full.txt)
