This documentation is archived and is not being maintained.

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)

[ToolboxBitmapAttribute(typeof(RibbonGroup), "RibbonGroup.bmp")]
public sealed class RibbonGroup : RibbonComponent

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.

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