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

# imageAlignment

The alignment of the cell’s image inside the image view.

```
var imageAlignment: NSImageAlignment { get set }
```

## Discussion

The default value of this property is [`NSImageAlignment.alignCenter`](/documentation/AppKit/NSImageAlignment/alignCenter).

---

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)