RibbonSplitButton.ControlSize 属性

定义

获取或设置 RibbonSplitButton 控件的大小。

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,表示控件的大小 RibbonSplitButton

注解

如果 是菜单的一部分, RibbonSplitButton 则此属性不起作用。 ControlSizeRibbonSplitButton菜单上显示的 的 始终设置为 Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeRegular ,除非父控件的 ItemSize 设置为 Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge

若要使RibbonSplitButton下拉菜单控件显示得更大,请将 的 RibbonSplitButton 属性设置为 ItemSizeMicrosoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge

可以在运行时设置此属性。

适用于