Compartilhar via


RibbonGallery.ControlSize Property

Gets or sets the size of the RibbonGallery control.

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

Syntax

'Declaration
Property ControlSize As RibbonControlSize
RibbonControlSize ControlSize { get; set; }

Property Value

Type: Microsoft.Office.Core.RibbonControlSize
A Microsoft.Office.Core.RibbonControlSize that represents the size of the RibbonGallery control.

Remarks

This property has no effect if the RibbonGallery is part of a menu. The ControlSize of a RibbonGallery that appears on a menu is always set to Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeRegular unless the parent control's ItemSize is set to Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge.

To make RibbonSplitButton drop-down menu controls appear larger, set the ItemSize property of the RibbonSplitButton to Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge.

This property can be set at run time.

.NET Framework Security

See Also

Reference

RibbonGallery Interface

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview