MenuItem.SetOffStateImage
-------------------------

Sets the image of the receiver that indicates an "off" state.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Menu](component_Menu.md) | [4.1](newinversion41.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "MenuItem.SetOffStateImage"; Item; Image ) 

**MBS**( **"MenuItem.SetOffStateImage";** /\* Sets the image of the receiver that indicates an "off" state. \*/  
**$Item**; /\* The reference to the menu item. Please create one with [MenuItem.CreateMenuItem](MenuItemCreateMenuItem.md) or [MenuItem.CreateSeparator](MenuItemCreateSeparator.md). \*/   
**$Image**) /\* The image to you. Pass a container value with JPEG, TIFF, PNG or other image formats. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Item | The reference to the menu item. Please create one with [MenuItem.CreateMenuItem](MenuItemCreateMenuItem.md) or [MenuItem.CreateSeparator](MenuItemCreateSeparator.md). | $item |
| Image | The image to you. Pass a container value with JPEG, TIFF, PNG or other image formats. | $image |

### Result

Returns OK or error.

### Description

Sets the image of the receiver that indicates an "off" state.  
Transparency is not supported on Windows.  
### See also

- [MenuItem.CreateMenuItem](MenuItemCreateMenuItem.md)
- [MenuItem.CreateSeparator](MenuItemCreateSeparator.md)
- [MenuItem.GetMixedStateImage](MenuItemGetMixedStateImage.md)
- [MenuItem.GetOffStateImage](MenuItemGetOffStateImage.md)
- [MenuItem.GetOnStateImage](MenuItemGetOnStateImage.md)
- [MenuItem.SetMixedStateImage](MenuItemSetMixedStateImage.md)
- [MenuItem.SetOnStateImage](MenuItemSetOnStateImage.md)

This function checks for a license.

Created 18th August 2014 , last changed 31st August 2014

  
[MenuItem.SetMixedStateImage](MenuItemSetMixedStateImage.md) - [MenuItem.SetOnStateImage](MenuItemSetOnStateImage.md)

[HTML Version](MenuItemSetOffStateImage.shtml)