Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the size of the RibbonToggleButton control.
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 RibbonToggleButton
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 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Office.Tools.Ribbon Namespace