RibbonLoadImageEventArgs.Image Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the image of a Ribbon control that you want to load.
public:
property System::Object ^ Image { System::Object ^ get(); void set(System::Object ^ value); };
public object Image { get; set; }
member this.Image : obj with get, set
Public Property Image As Object
Property Value
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.