---
title: ruleThickness
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsrulerview/rulethickness
---

# ruleThickness

The thickness of the area where ruler hash marks and labels are drawn.

## Declaration

```swift
var ruleThickness: CGFloat { get set }
```

## Discussion

Discussion This value is the height of the ruler area for a horizontal ruler or the width of the ruler area for a vertical ruler. Rulers are by default 16.0 PostScript units thick. You should rarely need to change this layout attribute, but subclasses might do so to accommodate custom drawing.

## See Also

### Ruler layout

- [scrollView](appkit/nsrulerview/scrollview.md)
- [orientation](appkit/nsrulerview/orientation-swift.property.md)
- [NSRulerView.Orientation](appkit/nsrulerview/orientation-swift.enum.md)
- [reservedThicknessForAccessoryView](appkit/nsrulerview/reservedthicknessforaccessoryview.md)
- [reservedThicknessForMarkers](appkit/nsrulerview/reservedthicknessformarkers.md)
- [requiredThickness](appkit/nsrulerview/requiredthickness.md)
- [baselineLocation](appkit/nsrulerview/baselinelocation.md)
- [isFlipped](appkit/nsrulerview/isflipped.md)
