---
title: imageWidth
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsmenuitemcell/imagewidth
---

# imageWidth

The width of the image associated with the menu item.

## Declaration

```swift
var imageWidth: CGFloat { get }
```

## Discussion

Discussion The width of the image is measured in points. You can associate an image with a menu item using the setImage: method of NSMenuItem.

## See Also

### Calculating the Size of a Menu Item

- [calcSize()](appkit/nsmenuitemcell/calcsize().md)
- [needsSizing](appkit/nsmenuitemcell/needssizing.md)
- [titleWidth](appkit/nsmenuitemcell/titlewidth.md)
- [keyEquivalentWidth](appkit/nsmenuitemcell/keyequivalentwidth.md)
- [stateImageWidth](appkit/nsmenuitemcell/stateimagewidth.md)
