# ViewChangedEventArgs Class

> The ViewChangedEventArgs class provides data for the View.Changed event. This event occurs when a part of the view's image must be updated.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 24.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
- **Inherits:** `System.EventArgs`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > ViewChangedEventArgs Class
- **648 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/viewchangedeventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/viewchangedeventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/viewchangedeventargs/llms-full.txt

---

### Description

The ViewChangedEventArgs class provides data for the [View.Changed](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/view/changed-event/llms-full.txt) event. This event occurs when a part of the view's image must be updated.

### Syntax

```csharp
public class ViewChangedEventArgs : EventArgs
```

```vbnet
Public Class ViewChangedEventArgs
    Inherits EventArgs
```

### Examples

The following example includes the scroll orientation value from a View Changed Event Args object in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Scroll Orientation: {viewChangedEventArgs.ScrollOrientation}");
Console.WriteLine("View Changed Event Args is ready for use.");
```

```vbnet
Console.WriteLine($"Scroll Orientation: {viewChangedEventArgs.ScrollOrientation}")
Console.WriteLine("View Changed Event Args is ready for use.")
```

---

## In This Section

- [ViewChangedEventArgs.ClipRectangle Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/viewchangedeventargs/cliprectangle-property/llms-full.txt): Gets the rectangular area, in pixels, which is affected through the changes. The coordinates are relative to the top-left corner of the view's image, which is determined through the View.Location and View.Size properties.
- [ViewChangedEventArgs.ScrollDistance Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/viewchangedeventargs/scrolldistance-property/llms-full.txt): Gets the amount the document has been scrolled. The direction is determined through the ScrollOrientation property. When the distance is less than zero the document is scrolled down or to the right, otherwise the document is scrolled up or to the left.
- [ViewChangedEventArgs.ScrollOrientation Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/viewchangedeventargs/scrollorientation-property/llms-full.txt): Gets a value which determines whether the change is the result of scrolling, either through setting the view's location in the document or through autoscrolling initiated through the control when the input position leaves the visible part of the document.

---

## Nearby

- **Previous:** [View.ZoomFactor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/view/zoomfactor-property/llms-full.txt)
- **Next:** [ViewChangedEventArgs.ClipRectangle Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/viewchangedeventargs/cliprectangle-property/llms-full.txt)
