---
title: usesRuler
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextview/usesruler
---

# usesRuler

A Boolean value that controls whether the text views sharing the receiver’s layout manager use a ruler.

## Declaration

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

## Discussion

Discussion true to cause text views sharing the receiver’s layout manager to respond to NSRulerView client messages and to paragraph-related menu actions, and update the ruler (when visible) as the selection changes with its paragraph and tab attributes, otherwise false.

## See Also

### Related Documentation

- [rangeForUserParagraphAttributeChange](appkit/nstextview/rangeforuserparagraphattributechange.md)

### Using text formatting controls

- [isRulerVisible](appkit/nstextview/isrulervisible.md)
- [usesInspectorBar](appkit/nstextview/usesinspectorbar.md)
