# ViewChangedEventArgs.ScrollOrientation Property

> 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.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **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
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > ViewChangedEventArgs.ScrollOrientation Property
- **542 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/viewchangedeventargs/scrollorientation-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/viewchangedeventargs/scrollorientation-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/viewchangedeventargs/scrollorientation-property/llms-full.txt

---

### Description

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.

### Syntax

```csharp
public ScrollOrientation ScrollOrientation { get; }
```

```vbnet
Public ReadOnly Property ScrollOrientation As ScrollOrientation
```

### Members

| Value | Description |
|---|---|
| None | The changes are not the result of a scroll operation. The rectangular area is added to the view's update region. |
| HorizontalScroll | The view has been scrolled horizontally. The [ScrollDistance](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/viewchangedeventargs/scrolldistance-property/llms-full.txt) property determines the amount. When the system, which shows the view's image allows scrolling, the appropriate scrolling function can be used to avoid repainting the complete view. The [ClipRectangle](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/viewchangedeventargs/cliprectangle-property/llms-full.txt) property gets the clipping rectangle of the part which must be repainted. |
| VerticalScroll | The view has been scrolled vertically. |

### Examples

The following example includes the scroll orientation value 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.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [ViewChangedEventArgs.ScrollDistance Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/viewchangedeventargs/scrolldistance-property/llms-full.txt)
- **Next:** [AdaptFontEventArgs Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/adaptfonteventargs/llms-full.txt)
