RibbonMenu.ShowImage Property (2007 System)
Gets or sets a value that indicates whether the image that is associated with the menu is visible.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)
Syntax
'Declaration
Public Property ShowImage As Boolean
'Usage
Dim instance As RibbonMenu
Dim value As Boolean
value = instance.ShowImage
instance.ShowImage = value
public bool ShowImage { get; set; }
public:
property bool ShowImage {
bool get ();
void set (bool value);
}
public function get ShowImage () : boolean
public function set ShowImage (value : boolean)
Property Value
Type: System.Boolean
true if the image that is associated with the menu is visible; otherwise, false. The default is false.
Remarks
This property is automatically set to true if you set the Image, ImageName, or OfficeImageId property at design time.
This property is automatically set to true if you set the ControlSize property to Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge at design time or run time.
.NET Framework Security
- 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.