Share via


RibbonBox Class (2007 System)

Arranges and aligns controls on a custom Ribbon.

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

Syntax

'Declaration
<ToolboxBitmapAttribute(GetType(RibbonLabel), "RibbonBox.bmp")> _
Public NotInheritable Class RibbonBox _
    Inherits RibbonControl
'Usage
Dim instance As RibbonBox
[ToolboxBitmapAttribute(typeof(RibbonLabel), "RibbonBox.bmp")]
public sealed class RibbonBox : RibbonControl
[ToolboxBitmapAttribute(typeof(RibbonLabel), L"RibbonBox.bmp")]
public ref class RibbonBox sealed : public RibbonControl
public final class RibbonBox extends RibbonControl

Remarks

The RibbonBox automatically aligns Ribbon controls as you drop them onto it.

Use the BoxStyle property to arrange child controls horizontally (default) or vertically. If controls are set to be arranged vertically and there is not enough space, they are arranged in multiple columns.

Some properties of this control can be set only before the Ribbon is loaded into the Office application. For information about setting these properties, see Ribbon Object Model Overview.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      Microsoft.Office.Tools.Ribbon.RibbonComponent
        Microsoft.Office.Tools.Ribbon.RibbonControl
          Microsoft.Office.Tools.Ribbon.RibbonBox

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

RibbonBox Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Overview

Ribbon Designer

Ribbon Object Model Overview

How to: Get Started Customizing the Ribbon