RibbonLoadImageEventArgs.Image Property
Gets or sets the image of a Ribbon control that you want to load.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
Syntax
'Declaration
Property Image As Object
Object Image { get; set; }
Property Value
Type: System.Object
One of the following objects that represents the image that you want to load: an Image, an IPictureDisp implementation, or a string that specifies the imageMso value of a built-in Office icon.
Remarks
Use this property in the event handler for the LoadImage event to load an image for a control. If the ImageName property of the RibbonLoadImageEventArgs matches the ImageName property of the control, set the Image property to the image that you want to load.
To cache a custom image, set this property to an Image or an IPictureDisp that represents the image. For more information about the IPictureDisp COM interface, see IPictureDisp.
To cache a built-in icon, set this property to the imageMso value of the icon. For a list of imageMso values, see the Microsoft Download Center page Office 2010 Add-In: Icons Gallery.
.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.