# TextControl.VerticalScrollBarVisibility Property

> Gets or sets a value that indicates whether a vertical scroll bar is shown. The property's value is of the type System.Windows.Controls.ScrollBarVisibility. This is a dependency property.

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

---

### Description

Gets or sets a value that indicates whether a vertical scroll bar is shown. The property's value is of the type System.Windows.Controls.ScrollBarVisibility. This is a dependency property.

### Syntax

```csharp
public ScrollBarVisibility VerticalScrollBarVisibility { get; set; }
```

```vbnet
Public Property VerticalScrollBarVisibility As ScrollBarVisibility
```

### Members

| Value | Description |
|---|---|
| Auto | A vertical scroll bar is shown when the document is not completely visible in the vertical direction. |
| Disabled | A vertical scroll bar is not shown even if the document is not completely visible. |
| Hidden | Same as Disabled. |
| Visible | Same as Auto. |

### Examples

The following example uses `TextControl.VerticalScrollBarVisibility` to configure vertical scroll bar visibility as part of the text control workflow. The configured value is checked before the workflow continues.

```csharp
textControl.VerticalScrollBarVisibility = System.Windows.Controls.ScrollBarVisibility.Disabled;
Console.WriteLine($"Vertical Scroll Bar Visibility used by Text Control: {textControl.VerticalScrollBarVisibility}");
```

```vbnet
textControl.VerticalScrollBarVisibility = System.Windows.Controls.ScrollBarVisibility.Disabled
Console.WriteLine($"Vertical Scroll Bar Visibility used by Text Control: {textControl.VerticalScrollBarVisibility}")
```

---

## Nearby

- **Previous:** [TextControl.VerticalRulerBar Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/verticalrulerbar-property/llms-full.txt)
- **Next:** [TextControl.VExpanded Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/vexpanded-event/llms-full.txt)
