RibbonMenu.ItemSize Property (2007 System)
Gets or sets the size of the controls on the menu.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)
Syntax
'Declaration
Public Property ItemSize As RibbonControlSize
'Usage
Dim instance As RibbonMenu
Dim value As RibbonControlSize
value = instance.ItemSize
instance.ItemSize = value
public RibbonControlSize ItemSize { get; set; }
public:
property RibbonControlSize ItemSize {
RibbonControlSize get ();
void set (RibbonControlSize value);
}
public function get ItemSize () : RibbonControlSize
public function set ItemSize (value : RibbonControlSize)
Property Value
Type: RibbonControlSize
A Microsoft.Office.Core.RibbonControlSize that represents the size of the controls on the menu. The default is Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeRegular.
Remarks
To enlarge controls that are on the menu, set the ItemSize property of the parent menu to Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge.
This property can be set at run time only under certain conditions. For more information, see Ribbon Object Model Overview.
To change the size of the menu, use the ControlSize 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