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

# imageRectInRuler

The rectangle occupied by the receiver’s image.

```
var imageRectInRuler: NSRect { get }
```

## Discussion

The rectangle occupied by the receiver’s image, in the ruler view’s coordinate system, accounting for whether the ruler view’s coordinate system is flipped.

## See Also

[`draw(_:)`](/documentation/AppKit/NSRulerMarker/draw(_:))

Draws the receiver’s image that appears in the supplied rectangle.



---

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)