---
id: "P:cAlgo.API.ScrollViewer.VerticalScrollBarVisibility"
kind: "property"
type: "T:cAlgo.API.ScrollViewer"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Layout/ScrollViewer/ScrollViewer/VerticalScrollBarVisibility/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# ScrollViewer.VerticalScrollBarVisibility

Member of [ScrollViewer](https://help.ctrader.com/ctrader-algo/references/Controls/Layout/ScrollViewer/ScrollViewer/index.md).

## VerticalScrollBarVisibility

Defines the vertical scroll bar visibility.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Accepted without error but never displayed, so control events such as Click are never raised.
- Cloud: Accepted without error but never displayed, so control events such as Click are never raised.

C#:

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

Python:

```python
scrollViewer.VerticalScrollBarVisibility: ScrollBarVisibility
```

### Returns

`ScrollBarVisibility` — 

### Examples

C#:

```csharp
var panel = new StackPanel();
for (var i = 1; i <= 50; i++)
    panel.AddChild(new TextBlock { Text = "Row " + i });
var scrollViewer = new ScrollViewer { Content = panel, Height = 120, VerticalScrollBarVisibility = ScrollBarVisibility.Auto };
Chart.AddControl(scrollViewer);
```

Python:

```python
panel = StackPanel()
for i in range(1, 51):
    row = TextBlock()
    row.Text = f"Row {i}"
    panel.AddChild(row)
scrollViewer = ScrollViewer()
scrollViewer.Content = panel
scrollViewer.Height = 120
scrollViewer.VerticalScrollBarVisibility = ScrollBarVisibility.Auto
api.Chart.AddControl(scrollViewer)
```

