# ScrollEventArgs

URL: https://docs.wisej.com/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs

Version: 4.1
Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.1.0.0)

Provides data for the Scroll event.

- C# - VB.NET

```csharp
public class ScrollEventArgs : EventArgs
```

```visual
Public Class ScrollEventArgs
    Inherits EventArgs
```

## Constructors

### ![Instance member](/img/api/instance.png) ScrollEventArgs(args)

Initializes a new instance of the [ScrollEventArgs](/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs) class using the given values for the [Type](/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs#type) and [NewValue](/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs#newvalue) properties.

| Name | Type | Description | **args** | WisejEventArgs | The arguments received from the client. 

### ![Instance member](/img/api/instance.png) ScrollEventArgs(type, newValue)

Initializes a new instance of the [ScrollEventArgs](/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs) class using the given values for the [Type](/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs#type) and [NewValue](/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs#newvalue) properties.

| Name | Type | Description | **type** | [ScrollEventType](/api/wisej.web/enumerations/wisej.web.scrolleventtype) | One of the [ScrollEventType](/api/wisej.web/enumerations/wisej.web.scrolleventtype) values. | **newValue** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The new value for the scroll bar. 

### ![Instance member](/img/api/instance.png) ScrollEventArgs(type, newValue, scroll)

Initializes a new instance of the [ScrollEventArgs](/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs) class using the given values for the [Type](/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs#type) , [NewValue](/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs#newvalue) , and [ScrollOrientation](/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs#scrollorientation) properties.

| Name | Type | Description | **type** | [ScrollEventType](/api/wisej.web/enumerations/wisej.web.scrolleventtype) | One of the [ScrollEventType](/api/wisej.web/enumerations/wisej.web.scrolleventtype) values. | **newValue** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The new value for the scroll bar. | **scroll** | [ScrollOrientation](/api/wisej.web/enumerations/wisej.web.scrollorientation) | One of the [ScrollOrientation](/api/wisej.web/enumerations/wisej.web.scrollorientation) values. 

### ![Instance member](/img/api/instance.png) ScrollEventArgs(type, oldValue, newValue)

Initializes a new instance of the [ScrollEventArgs](/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs) class using the given values for the [Type](/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs#type) , [OldValue](/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs#oldvalue) , and [NewValue](/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs#newvalue) properties.

| Name | Type | Description | **type** | [ScrollEventType](/api/wisej.web/enumerations/wisej.web.scrolleventtype) | One of the [ScrollEventType](/api/wisej.web/enumerations/wisej.web.scrolleventtype) values. | **oldValue** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The old value for the scroll bar. | **newValue** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The new value for the scroll bar. 

### ![Instance member](/img/api/instance.png) ScrollEventArgs(type, oldValue, newValue, scroll)

Initializes a new instance of the [ScrollEventArgs](/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs) class using the given values for the [Type](/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs#type) , [OldValue](/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs#oldvalue) , [NewValue](/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs#newvalue) , and [ScrollOrientation](/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs#scrollorientation) properties.

| Name | Type | Description | **type** | [ScrollEventType](/api/wisej.web/enumerations/wisej.web.scrolleventtype) | One of the [ScrollEventType](/api/wisej.web/enumerations/wisej.web.scrolleventtype) values. | **oldValue** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The old value for the scroll bar. | **newValue** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The new value for the scroll bar. | **scroll** | [ScrollOrientation](/api/wisej.web/enumerations/wisej.web.scrollorientation) | One of the [ScrollOrientation](/api/wisej.web/enumerations/wisej.web.scrollorientation) values. 

## Properties

### ![Instance member](/img/api/instance.png) NewValue

[Int32](https://docs.microsoft.com/dotnet/api/system.int32) : Returns or sets the new [Value](/api/wisej.web/content/scrollbar/#value) of the scroll bar.

### ![Instance member](/img/api/instance.png) OldValue

[Int32](https://docs.microsoft.com/dotnet/api/system.int32) : Returns the old [Value](/api/wisej.web/content/scrollbar/#value) of the scroll bar.

### ![Instance member](/img/api/instance.png) ScrollOrientation

[ScrollOrientation](/api/wisej.web/enumerations/wisej.web.scrollorientation) : Returns the scroll bar orientation that raised the Scroll event.

### ![Instance member](/img/api/instance.png) Type

[ScrollEventType](/api/wisej.web/enumerations/wisej.web.scrolleventtype) : Returns the type of scroll event that occurred.

## Used By

| Name | Description | [ScrollEventHandler](/api/wisej.web/content/scrollbar/wisej.web.scrolleventhandler) | Represents the method that handles the Scroll event of aScrollableControl ,ScrollBar , [TrackBar](/api/wisej.web/editors/wisej.web.trackbar) , orDataGridView .
