# TextControl.ScrollBars Property

> Gets or sets a value indicating whether a Text Control has horizontal or vertical scroll bars.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > TextControl.ScrollBars Property
- **393 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/scrollbars-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/scrollbars-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/scrollbars-property/llms-full.txt

---

### Description

Gets or sets a value indicating whether a Text Control has horizontal or vertical scroll bars.

### Syntax

```csharp
public ScrollBars ScrollBars { get; set; }
```

```vbnet
Public Property ScrollBars As ScrollBars
```

### Members

| Value | Description |
|---|---|
| None | The Text Control has no scrollbars. |
| Horizontal | The Text Control has a horizontal scrollbar. |
| Vertical | The Text Control has a vertical scrollbar. |
| Both | The Text Control has a horizontal and a vertical scrollbar. |

### Examples

The following example uses `TextControl.ScrollBars` to configure scroll bars as part of the text control workflow. The change is then applied to the active document or user interface.

```csharp
textControl.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal;
textControl.Update();
```

```vbnet
textControl.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal
textControl.Update()
```

---

## Nearby

- **Previous:** [TextControl.Save Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/save-method/llms-full.txt)
- **Next:** [TextControl.ScrollLocation Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/scrolllocation-property/llms-full.txt)
