---
title: "drawMarkers(in:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsrulerview/drawmarkers(in:)"
---

# drawMarkers(in:)

Draws the receiver’s markers in aRect, which is expressed in the receiver’s coordinate system.

## Declaration

```swift
func drawMarkers(in rect: NSRect)
```

## Discussion

Discussion This method is invoked by draw(_:); you should never need to invoke it directly, but you might want to override it if you want to do something different when drawing markers.

## See Also

### Related Documentation

- [reservedThicknessForMarkers](appkit/nsrulerview/reservedthicknessformarkers.md)

### Drawing

- [drawHashMarksAndLabels(in:)](appkit/nsrulerview/drawhashmarksandlabels(in:).md)
- [invalidateHashMarks()](appkit/nsrulerview/invalidatehashmarks().md)
