# ScrollEventArgs

Namespace: **Wisej.Web**

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

Provides data for the Scroll event.

{% tabs %}
{% tab title="C#" %}

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

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class ScrollEventArgs
    Inherits EventArgs
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollEventArgs(args)

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

| Name     | Type                                                                           | Description                             |
| -------- | ------------------------------------------------------------------------------ | --------------------------------------- |
| **args** | [WisejEventArgs](https://docs.wisej.com/api/wisej.core/general/wisejeventargs) | The arguments received from the client. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollEventArgs(type, newValue)

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

| Name         | Type                                                                                           | Description                                                                                                       |
| ------------ | ---------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| **type**     | [ScrollEventType](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.scrolleventtype) | One of the [ScrollEventType](https://docs.wisej.com/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.                                                                                 |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollEventArgs(type, newValue, scroll)

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

| Name         | Type                                                                                               | Description                                                                                                           |
| ------------ | -------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| **type**     | [ScrollEventType](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.scrolleventtype)     | One of the [ScrollEventType](https://docs.wisej.com/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](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.scrollorientation) | One of the [ScrollOrientation](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.scrollorientation) values. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollEventArgs(type, oldValue, newValue)

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

| Name         | Type                                                                                           | Description                                                                                                       |
| ------------ | ---------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| **type**     | [ScrollEventType](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.scrolleventtype) | One of the [ScrollEventType](https://docs.wisej.com/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.                                                                                 |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollEventArgs(type, oldValue, newValue, scroll)

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

| Name         | Type                                                                                               | Description                                                                                                           |
| ------------ | -------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| **type**     | [ScrollEventType](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.scrolleventtype)     | One of the [ScrollEventType](https://docs.wisej.com/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](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.scrollorientation) | One of the [ScrollOrientation](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.scrollorientation) values. |

## Properties

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) NewValue

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

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) OldValue

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

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollOrientation

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

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Type

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

## Used By

| Name                                                                                                      | Description                                                                                                                                                                                                                                                                                                                                                                              |
| --------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [ScrollEventHandler](https://docs.wisej.com/api/wisej.web/content/scrollbar/wisej.web.scrolleventhandler) | Represents the method that handles the Scroll event of a [ScrollableControl](https://docs.wisej.com/api/wisej.web/containers/scrollablecontrol), [ScrollBar](https://docs.wisej.com/api/wisej.web/content/scrollbar), [TrackBar](https://docs.wisej.com/api/wisej.web/editors/wisej.web.trackbar), or [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview). |
