---
title: verticalRulerView
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsscrollview/verticalrulerview
---

# verticalRulerView

The scroll view’s vertical ruler view.

## Declaration

```swift
var verticalRulerView: NSRulerView? { get set }
```

## Discussion

Discussion The value of this property is nil when the scroll view has no vertical ruler view. If the scroll view is set to display a vertical ruler view and doesn’t yet have one, this property creates an instance of the ruler view class set using the class method setRulerViewClass(_:). You can use this property to override the default ruler class set using the class method setRulerViewClass(_:). 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)
- [hasVerticalRuler](appkit/nsscrollview/hasverticalruler.md)
- [rulersVisible](appkit/nsscrollview/rulersvisible.md)
