RibbonMenu.ControlSize Property


Gets or sets the size of the menu.

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

RibbonControlSize ControlSize { get; set; }

Property Value

Type: Microsoft.Office.Core.RibbonControlSize

A Microsoft.Office.Core.RibbonControlSize that represents the size of the menu.

This property has no effect if the menu is nested in another menu. The ControlSize property of a nested menu is always set to Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeRegular.

To make a nested menu appear larger, set the ItemSize property of the parent menu to Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge.

Return to top