---
title: hasVerticalRuler
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsscrollview/hasverticalruler
---

# hasVerticalRuler

A Boolean that indicates whether the scroll view keeps a vertical ruler object.

## Declaration

```swift
var hasVerticalRuler: Bool { get set }
```

## Discussion

Discussion When the value of this method is true, the scroll view allocates a vertical ruler the first time it’s needed. Display of rulers is controlled using the rulersVisible property.

## See Also

### Managing Rulers

- [rulerViewClass](appkit/nsscrollview/rulerviewclass.md)
- [hasHorizontalRuler](appkit/nsscrollview/hashorizontalruler.md)
- [horizontalRulerView](appkit/nsscrollview/horizontalrulerview.md)
- [verticalRulerView](appkit/nsscrollview/verticalrulerview.md)
- [rulersVisible](appkit/nsscrollview/rulersvisible.md)
