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

# imagePosition

The position of the button’s image relative to its title.

```
var imagePosition: NSControl.ImagePosition { get set }
```

## Discussion

The value of this property is one of the image positions described in the “Constants” section of [`NSCell`](/documentation/AppKit/NSCell). If the title is above, below, or overlapping the image, or if there is no image, the text is horizontally centered within the button.

## See Also

[`image`](/documentation/AppKit/NSCell/image)

The image displayed by the cell, if any.

[`NSButtonCell`](/documentation/AppKit/NSButtonCell)

An object that defines the user interface of a button or other clickable region of a view.

[`setButtonType(_:)`](/documentation/AppKit/NSButtonCell/setButtonType(_:))

Sets how the button highlights while pressed and how it shows its state.



---

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)