---
title: NSRulerMarker
framework: appkit
role: symbol
role_heading: Class
path: appkit/nsrulermarker
---

# NSRulerMarker

A symbol on a ruler view, indicating a location for the graphics element it represents in the client of the ruler view.

## Declaration

```swift
class NSRulerMarker
```

## Overview

Overview An example of a marker is the representation of a margin or tab setting, or the edges of a graphic on the page.

## Topics

### Creating instances

- [init(rulerView:markerLocation:image:imageOrigin:)](appkit/nsrulermarker/init(rulerview:markerlocation:image:imageorigin:).md)

### Getting the ruler view

- [ruler](appkit/nsrulermarker/ruler.md)

### Setting the image

- [image](appkit/nsrulermarker/image.md)
- [imageOrigin](appkit/nsrulermarker/imageorigin.md)
- [imageRectInRuler](appkit/nsrulermarker/imagerectinruler.md)
- [thicknessRequiredInRuler](appkit/nsrulermarker/thicknessrequiredinruler.md)

### Setting movability

- [isMovable](appkit/nsrulermarker/ismovable.md)
- [isRemovable](appkit/nsrulermarker/isremovable.md)

### Setting the location

- [markerLocation](appkit/nsrulermarker/markerlocation.md)

### Setting the represented object

- [representedObject](appkit/nsrulermarker/representedobject.md)

### Drawing and event handling

- [draw(_:)](appkit/nsrulermarker/draw(_:).md)
- [isDragging](appkit/nsrulermarker/isdragging.md)
- [trackMouse(with:adding:)](appkit/nsrulermarker/trackmouse(with:adding:).md)

### Initializers

- [init(coder:)](appkit/nsrulermarker/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Rulers

- [NSRulerView](appkit/nsrulerview.md)
