Share via


RibbonMenu.ControlSize Property (2007 System)

Gets or sets the size of the menu.

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

Syntax

'Declaration
Public Property ControlSize As RibbonControlSize
'Usage
Dim instance As RibbonMenu 
Dim value As RibbonControlSize 

value = instance.ControlSize

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

Property Value

Type: RibbonControlSize
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.

.NET Framework Security

See Also

Reference

RibbonMenu Class

RibbonMenu Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview