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

# imagePosition

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

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

## Discussion

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 [`NSControl.ImagePosition`](/documentation/AppKit/NSControl/ImagePosition) in [`NSCell`](/documentation/AppKit/NSCell) for the list of possible image positions.

## See Also

[`title`](/documentation/AppKit/NSButton/title)

The title displayed on the button when it’s in an off state.

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

Sets the button’s type, which affects its user interface and behavior when clicked.



---

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)