RibbonGallery.ControlSize Property

Definition

Gets or sets the size of the RibbonGallery control.

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 RibbonGallery control.

Remarks

This property has no effect if the RibbonGallery is part of a menu. The ControlSize of a RibbonGallery that appears on a menu is always set to Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeRegular unless the parent control's ItemSize is set to Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge.

To make RibbonSplitButton drop-down menu controls appear larger, set the ItemSize property of the RibbonSplitButton to Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge.

This property can be set at run time.

Applies to