RibbonToggleButton.ShowImage Property
Gets or sets a value that indicates whether the image that is associated with the RibbonToggleButton is visible.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
Syntax
'Declaration
Property ShowImage As Boolean
bool ShowImage { get; set; }
Property Value
Type: System.Boolean
true if the image that is associated with the RibbonToggleButton 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 in the designer.
This property is always true if you set the ControlSize property to Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge.
This property can be changed at 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.
See Also
Reference
Microsoft.Office.Tools.Ribbon Namespace