---
title: reservedThicknessForMarkers
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsrulerview/reservedthicknessformarkers
---

# reservedThicknessForMarkers

The room available for ruler markers to thickness.

## Declaration

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

## Discussion

Discussion The default thickness reserved for markers is 15.0 PostScript units for a horizontal ruler and 0.0 PostScript units for a vertical ruler (under the assumption that vertical rulers rarely contain markers). If you don’t expect to have any markers on the ruler, you can set the reserved thickness to 0.0. An NSRulerView automatically increases the reserved thickness as necessary to that of its thickest marker. If you plan to use markers of varying sizes, you should set the reserved thickness beforehand to that of the thickest one in order to avoid retiling of the NSScrollView.

## See Also

### Related Documentation

- [thicknessRequiredInRuler](appkit/nsrulermarker/thicknessrequiredinruler.md)
- [markers](appkit/nsrulerview/markers.md)

### 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)
- [ruleThickness](appkit/nsrulerview/rulethickness.md)
- [requiredThickness](appkit/nsrulerview/requiredthickness.md)
- [baselineLocation](appkit/nsrulerview/baselinelocation.md)
- [isFlipped](appkit/nsrulerview/isflipped.md)
