# TextControl.VShrunk Event

> Occurs when the Text Control has automatically shrunk its size vertically. 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:** 16.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.VShrunk Event
- **292 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/vshrunk-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/vshrunk-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/vshrunk-event/llms-full.txt

---

### Description

Occurs when the Text Control has automatically shrunk its size vertically. The event handler receives an argument of type EventArgs containing data related to this event.

### Syntax

```csharp
public event EventHandler VShrunk;
```

```vbnet
Public Event VShrunk As EventHandler
```

### Examples

The following example records useful context when vshrunk occurs.

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

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

---

## Nearby

- **Previous:** [TextControl.VScroll Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/vscroll-event/llms-full.txt)
- **Next:** [TextControl.XmlEditMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/xmleditmode-property/llms-full.txt)
