RibbonMenu.ControlSize Property

Definition

Gets or sets the size of the menu.

public:
 property Microsoft::Office::Core::RibbonControlSize ControlSize { Microsoft::Office::Core::RibbonControlSize get(); void set(Microsoft::Office::Core::RibbonControlSize value); };
public Microsoft.Office.Core.RibbonControlSize ControlSize { get; set; }
member this.ControlSize : Microsoft.Office.Core.RibbonControlSize with get, set
Public Property ControlSize As RibbonControlSize

Property Value

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

Remarks

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.

Applies to