# ScrollBehavior

Namespace: **Wisej.Web**

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

Specifies the scrolling behavior to use when performing scroll operations. <mark style="color:blue;background-color:green;">Since 4.0.3</mark>

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

```csharp
public enum ScrollBehavior : Enum
```

{% endtab %}

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

```visual-basic
Public Enum ScrollBehavior As [Enum]
```

{% endtab %}
{% endtabs %}

Use this enumeration to control whether scrolling occurs instantly or with a smooth animation. The behavior selected may affect user experience and accessibility. The default value is typically [Auto](#fields).

## Fields

| Name        | Description                                                               |
| ----------- | ------------------------------------------------------------------------- |
| **Auto**    | Scroll behavior is determined by the computed value of `scroll-behavior`. |
| **Instant** | Scrolling should happen instantly in a single jump.                       |
| **Smooth**  | Scrolling should animate smoothly.                                        |

## Used By

| Name                                                                                                   | Description                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Control.ScrollControlIntoView](/api/wisej.web/general/control.md#scrollcontrolintoview-alignx-aligny) | <p>Scrolls the control into view in the container using the specified <em>alignX</em> and <em>alignY</em> preferences.<br><mark style="color:blue;background-color:green;">Since 4.0.3</mark></p> |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.scrollbehavior.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
