Share via


RibbonGallery.ItemImageSize Property (2007 System)

Gets or sets a Size that gives the dimensions of the images that are displayed by the items in this RibbonGallery.

Namespace:  Microsoft.Office.Tools.Ribbon
Assembly:  Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)

Syntax

'Declaration
Public Property ItemImageSize As Size
'Usage
Dim instance As RibbonGallery 
Dim value As Size 

value = instance.ItemImageSize

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

Property Value

Type: System.Drawing.Size
A Size that gives the dimensions of the images that are displayed by the items in this RibbonGallery.

Remarks

The RibbonGallery class gives more control over the image size than either RibbonMenu or RibbonSplitButton. It is the only one of the three classes that enables you to specify an image width and height in pixels.

This property does not affect the size of images displayed on buttons in this RibbonGallery.

.NET Framework Security

See Also

Reference

RibbonGallery Class

RibbonGallery Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview