Share via


RibbonGroup Class (2007 System)

Represents a group of controls on a Ribbon tab.

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

Syntax

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

Remarks

Visual Studio Tools for Office creates an instance of the RibbonGroup class when you drag a Group control from the Office Ribbon Controls tab of the Toolbox onto the Ribbon Designer.

Common Tasks

The following table lists members that are useful for common tasks. All of these tasks can be performed at design time. Some of these tasks can be performed at run time before the Ribbon is loaded. For more information, see Ribbon Object Model Overview.

Task

Member

Access the controls in the group, add controls to the group, or remove controls from the group.

Use the Items property.

Add a group to a Ribbon tab.

Create an instance of the RibbonGroup class by using the RibbonGroup constructor, and then add the new RibbonGroup to the Groups collection of the tab.

Specify the location of a group on a built-in tab, relative to the location of a built-in group.

Use the Position property.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      Microsoft.Office.Tools.Ribbon.RibbonComponent
        Microsoft.Office.Tools.Ribbon.RibbonGroup

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

RibbonGroup Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Overview

Ribbon Designer

Ribbon Object Model Overview

How to: Get Started Customizing the Ribbon

How to: Customize a Built-in Tab