RibbonLoadImageEventArgs.Image Property (2007 System)
Gets or sets the image of a Ribbon control that you want to load.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)
Syntax
'Declaration
Public Property Image As Object
'Usage
Dim instance As RibbonLoadImageEventArgs
Dim value As Object
value = instance.Image
instance.Image = value
public Object Image { get; set; }
public:
property Object^ Image {
Object^ get ();
void set (Object^ value);
}
public function get Image () : Object
public function set Image (value : Object)
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 2007 Office System 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.
See Also
Reference
RibbonLoadImageEventArgs Class