# TextControl.OnInputFormattingStyleChanged Method

> Raises the InputFormattingStyleChanged event.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > TextControl.OnInputFormattingStyleChanged Method
- **499 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/oninputformattingstylechanged-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/oninputformattingstylechanged-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/oninputformattingstylechanged-method/llms-full.txt

---

### Description

Raises the InputFormattingStyleChanged event.

### Syntax

```csharp
protected virtual void OnInputFormattingStyleChanged(EventArgs e);
```

```vbnet
Protected Overridable Sub OnInputFormattingStyleChanged(e As EventArgs)
```

### Parameters

| Parameter | Description |
|---|---|
| e | Specifies an EventArgs object that contains the event data. |

### Examples

The following example extends Text Control and performs custom processing when On Input Formatting Style Changed is invoked.

```csharp
class CustomTextControl : TextControl
{
    protected override void OnInputFormattingStyleChanged(EventArgs e)
    {
        // Add custom processing before registered event handlers run.
        base.OnInputFormattingStyleChanged(e);
    }
}
```

```vbnet
Class CustomTextControl
    Inherits TextControl

    Protected Overrides Sub OnInputFormattingStyleChanged(e As EventArgs)
        ' Add custom processing before registered event handlers run.
        MyBase.OnInputFormattingStyleChanged(e)
    End Sub
End Class
```

---

## Nearby

- **Previous:** [TextControl.OnImageSized Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/onimagesized-method/llms-full.txt)
- **Next:** [TextControl.OnInputParagraphChanged Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/oninputparagraphchanged-method/llms-full.txt)
