RibbonMenu.ControlSize 属性

定义

获取或设置菜单的大小。

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

属性值

表示菜单大小的 Microsoft.Office.Core.RibbonControlSize。

注解

如果菜单嵌套在另一个菜单中,则此属性不起作用。 ControlSize嵌套菜单的 属性始终设置为 Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeRegular

若要使嵌套菜单显示得更大,请将父菜单的 属性设置为 ItemSizeMicrosoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge

适用于