# ScrollBars

Namespace: **Wisej.Web**

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

Specifies which scroll bars will be visible on a control.

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

```csharp
public enum ScrollBars : Enum
```

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

## Fields

| Name           | Description                                                       |
| -------------- | ----------------------------------------------------------------- |
| **Both**       | Both scroll bars are shown when necessary.                        |
| **Hidden**     | Scrolling functionality is active but the scrollbar are hidden.   |
| **Horizontal** | Shows only the horizontal scroll bar when necessary.              |
| **None**       | No scroll bars are shown and scrolling functionality is disabled. |
| **Vertical**   | Shows only the vertical scroll bar when necessary.                |

## Used By

| Name                                                                                                                                                                        | Description                                                                                                                                                |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [ScrollableControl.ScrollBars](https://docs.wisej.com/api/containers/scrollablecontrol#scrollbars)                                                                          | Returns or sets the type of scroll bars to display for the [ScrollableControl](https://docs.wisej.com/api/wisej.web/containers/scrollablecontrol) control. |
| [TextBox.ScrollBars](https://docs.wisej.com/api/editors/wisej.web.textbox#scrollbars)                                                                                       | Returns or sets which scroll bars should appear.                                                                                                           |
| [DataGridView.ScrollBars](https://docs.wisej.com/api/lists-and-grids/datagridview#scrollbars)                                                                               | Returns or sets the type of scroll bars to display for the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control.      |
| [HtmlPanel.ScrollBars](https://docs.wisej.com/api/content/htmlpanel#scrollbars)                                                                                             | Returns or sets the type of scroll bars to display for the [HtmlPanel](https://docs.wisej.com/api/wisej.web/content/htmlpanel) control.                    |
| [ScrollableControlExtensions.ScrollBars](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.scrollablecontrolextensions#scrollbars-control-scrollbars) | Sets the ScrollBars property of the specified [ScrollableControl](https://docs.wisej.com/api/wisej.web/containers/scrollablecontrol).                      |
| [TextBoxExtensions.ScrollBars](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.textboxextensions#scrollbars-textbox-scrollbars)                     | Sets the scroll bars for the specified [TextBox](https://docs.wisej.com/api/wisej.web/editors/wisej.web.textbox).                                          |
