Share via


RibbonToggleButton.ControlSize Property

Gets or sets the size of the RibbonToggleButton control.

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

Syntax

'Declaration
Property ControlSize As RibbonControlSize
RibbonControlSize ControlSize { get; set; }

Property Value

Type: Microsoft.Office.Core.RibbonControlSize
A Microsoft.Office.Core.RibbonControlSize that represents the size of the RibbonToggleButton control.

Remarks

This property has no effect if the button is part of a menu. The Microsoft.Office.Core.RibbonControlSize of a button that appears on a menu is always set to Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeRegular.

To change the size of a RibbonToggleButton on a menu, use the ItemSize property.

.NET Framework Security

See Also

Reference

RibbonToggleButton Interface

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview