[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets or sets the image that is displayed on the menu.
Assembly: Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
The recommended image format is PNG, because images in the PNG format support transparency through their alpha channel.
The property identifies an image that is displayed by the control. This property can be set at design time or at run time. If you update this property at run time, the control's appearance is updated to reflect the change.
If the property is set, the OfficeImageId and ImageName properties are ignored. Although the property gives you more control than the other two properties do, it can be slower because the image object is sent to the Office application every time the control is updated.
The ShowImage property must be true for the control to display the image. When you set the property at design time, Visual Studio automatically sets the ShowImage property to true. If you set the property at run time, you must set the ShowImage property to true in your code.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.