Share via


RibbonControlSizeDefinition.ImageSize Property

Gets or sets a value that indicates how to show the image on a control.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public Property ImageSize As RibbonImageSize
public RibbonImageSize ImageSize { get; set; }
public:
property RibbonImageSize ImageSize {
    RibbonImageSize get ();
    void set (RibbonImageSize value);
}
member ImageSize : RibbonImageSize with get, set
function get ImageSize () : RibbonImageSize
function set ImageSize (value : RibbonImageSize)

Property Value

Type: Microsoft.Windows.Controls.Ribbon.RibbonImageSize
One of the enumeration values that specify how to show the image on a control. The registered default is Large. For more information about what can influence the value, see Dependency Property Value Precedence.

Dependency Property Information

Identifier field

ImageSizeProperty

Metadata properties set to true

None

Remarks

A Ribbon control can display a Large image, a Small image, or the image can be Collapsed. If the control does not specify an image of the size that corresponds to the ImageSize setting, no image is displayed.

.NET Framework Security

See Also

Reference

RibbonControlSizeDefinition Class

Microsoft.Windows.Controls.Ribbon Namespace

Other Resources

Ribbon Layout and Resizing