<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSRulerView/reservedThicknessForMarkers",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSRulerView(py)reservedThicknessForMarkers"
  },
  "title" : "reservedThicknessForMarkers"
}
-->

# reservedThicknessForMarkers

The room available for ruler markers to `thickness`.

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

## 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

[`thicknessRequiredInRuler`](/documentation/AppKit/NSRulerMarker/thicknessRequiredInRuler)

The amount of the receiver’s image that’s displayed above or to the left of the ruler view’s baseline.

[`markers`](/documentation/AppKit/NSRulerView/markers)

The receiver’s ruler markers to `markers`, removing any existing ruler markers and not consulting with the client view about the new markers.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)