# View.AutoVScroll Event

> Occurs when the vertical location of the view has been changed automatically. This can be happen, if the input position is moved outside of the document part which is defined through the View object. The event handler receives an argument of type EventArgs containing data related to this event.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Event
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.ServerVisualisation`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > View.AutoVScroll Event
- **318 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/view/autovscroll-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/view/autovscroll-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/view/autovscroll-event/llms-full.txt

---

### Description

Occurs when the vertical location of the view has been changed automatically. This can be happen, if the input position is moved outside of the document part which is defined through the View object. The event handler receives an argument of type EventArgs containing data related to this event.

### Syntax

```csharp
public event EventHandler AutoVScroll;
```

```vbnet
Public Event AutoVScroll As EventHandler
```

### Examples

The following example records useful context when auto vscroll occurs.

```csharp
view.AutoVScroll += (sender, e) =>
{
    Console.WriteLine($"Auto VScroll at {DateTime.Now:u}");
};
```

```vbnet
AddHandler view.AutoVScroll,
    Sub(sender, e)
        Console.WriteLine($"Auto VScroll at {DateTime.Now:u}")
    End Sub
```

---

## Nearby

- **Previous:** [View.AutoHScroll Event](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/view/autohscroll-event/llms-full.txt)
- **Next:** [View.Changed Event](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/view/changed-event/llms-full.txt)
