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

# imageAlignment

The alignment of the receiver’s image relative to its frame.

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

## Discussion

For a list of possible values, see [`NSImageAlignment`](/documentation/AppKit/NSImageAlignment). The default value is `NSImageAlignCenter`.

## See Also

[`class NSImageCell`](/documentation/AppKit/NSImageCell)

An `NSImageCell` object displays a single image (encapsulated in an [`NSImage`](/documentation/AppKit/NSImage) object) in a frame. This class provides methods for choosing the frame and for aligning and scaling the image to fit the frame.



---

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)