RibbonDialogLauncher.Image Property (2007 System)

Gets or sets an image that appears on this RibbonDialogLauncher when it is added to the Quick Access Toolbar.

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 Image
'Usage
Dim instance As RibbonDialogLauncher 
Dim value As Image 

value = instance.Image

instance.Image = value
public Image Image { get; set; }
public:
property Image^ Image {
    Image^ get ();
    void set (Image^ value);
}
public function get Image () : Image 
public function set Image (value : Image)

Property Value

Type: System.Drawing.Image
An image that appears on this RibbonDialogLauncher when it is added to the Quick Access Toolbar.

Remarks

The recommended image format is PNG, because images in the PNG format support transparency through their alpha channel.

The Image property has no visible effect when the RibbonDialogLauncher is displayed in a group on the Ribbon. However, when a user adds a RibbonDialogLauncher to the Quick Access Toolbar, this property controls the behavior of the image that is shown.

The Image property identifies an image that is displayed by the control. This property can be set at design time or at run time. If you update this property at run time, the control's appearance is updated to reflect the change.

If the Image property is set, the OfficeImageId and ImageName properties are ignored. Although the Image property gives you more control than the other two properties do, it can be slower because the image object is sent to the Office application every time the control is updated.

.NET Framework Security

See Also

Reference

RibbonDialogLauncher Class

RibbonDialogLauncher Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview