# RibbonGroup Class

> The RibbonGroup class represents a logical group of controls as they appear on a RibbonTab and is the base class of the HorizontalRibbonGroup class. An instance of a RibbonGroup can be added to a RibbonTab by using the Add method of its RibbonGroupCollection which is represented by the RibbonTab.RibbonGroups property. The controls of a RibbonGroup are arranged in columns. To arrange them in rows it is recommend to use an instance of type HorizontalRibbonGroup. A RibbonGroup is inherited from the System.Windows.Forms.Panel class. The following describes only the properties, methods and events defined through the RibbonGroup class. For a list of properties, methods and events inherited from the System.Windows.Forms.Panel class see the .NET Framework reference.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.Windows.Forms.Ribbon`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Inherits:** `System.Windows.Forms.Panel`
- **Derived:** `TXTextControl.Windows.Forms.Ribbon.HorizontalRibbonGroup`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Windows.Forms.Ribbon > RibbonGroup Class
- **1499 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/llms-full.txt

---

### Description

The RibbonGroup class represents a logical group of controls as they appear on a [RibbonTab](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontab/llms-full.txt) and is the base class of the [HorizontalRibbonGroup](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/horizontalribbongroup/llms-full.txt) class. An instance of a RibbonGroup can be added to a [RibbonTab](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontab/llms-full.txt) by using the [Add](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroupcollection/add-method/llms-full.txt) method of its [RibbonGroupCollection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroupcollection/llms-full.txt) which is represented by the [RibbonTab.RibbonGroups](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontab/ribbongroups-property/llms-full.txt) property. The [controls](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/ribbonitems-property/llms-full.txt) of a RibbonGroup are arranged in columns. To arrange them in rows it is recommend to use an instance of type [HorizontalRibbonGroup](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/horizontalribbongroup/llms-full.txt). A RibbonGroup is inherited from the `System.Windows.Forms.Panel` class. The following describes only the properties, methods and events defined through the RibbonGroup class. For a list of properties, methods and events inherited from the `System.Windows.Forms.Panel` class see the .NET Framework reference.

### Syntax

```csharp
public class RibbonGroup : Panel
```

```vbnet
Public Class RibbonGroup
    Inherits Panel
```

### Examples

The following example creates a Ribbon Group instance and configures its horizontal content alignment setting for a document workflow.

```csharp
using TXTextControl.Windows.Forms.Ribbon.RibbonGroup ribbonGroup = new();
ribbonGroup.HorizontalContentAlignment = TXTextControl.HorizontalAlignment.Center;
```

```vbnet
Dim ribbonGroup As New TXTextControl.Windows.Forms.Ribbon.RibbonGroup()
ribbonGroup.HorizontalContentAlignment = TXTextControl.HorizontalAlignment.Center
```

---

## In This Section

- [RibbonGroup Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/constructor/llms-full.txt): Initializes a new instance of the RibbonGroup class.
- [RibbonGroup.DialogBoxLauncher Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/dialogboxlauncher-property/llms-full.txt): Gets an object of type DialogBoxLauncher which represents the RibbonGroup's dialog box launcher item.
- [RibbonGroup.HorizontalContentAlignment Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/horizontalcontentalignment-property/llms-full.txt): Gets or sets the ribbon group's horizontal content alignment. The default value is TXTextControl.HorizontalAlignment.Left.
- [RibbonGroup.IsAddToQuickAccessToolbarEnabled Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/isaddtoquickaccesstoolbarenabled-property/llms-full.txt): Gets or sets a value whether the RibbonGroup can be added to the quick access toolbar.
- [RibbonGroup.KeyTip Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/keytip-property/llms-full.txt): Gets or sets the keyboard shortcut of the RibbonGroup.
- [RibbonGroup.LargeIcon Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/largeicon-property/llms-full.txt): Gets or sets an icon for this RibbonGroup. This icon is displayed by the RibbonGroup's menu button which appears when the RibbonGroup shrinks to a width where its items cannot be displayed anymore. If the size of the icon is smaller than 32x32 1/96 inch, the image is drawn centered on the menu button.
- [RibbonGroup.RibbonItems Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/ribbonitems-property/llms-full.txt): Gets a collection of all items contained in this group. These controls can be objects of type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView or RibbonTextBox. RibbonGroups of type HorizontalRibbonGroup can also add objects of type RibbonSeperator.
- [RibbonGroup.RowCount Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/rowcount-property/llms-full.txt): Gets or sets the number of rows in the RibbonGroup.
- [RibbonGroup.ShowSeperator Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/showseperator-property/llms-full.txt): Gets or sets a value whether the RibbonGroup's separator is shown. The default value is true.
- [RibbonGroup.SmallIcon Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/smallicon-property/llms-full.txt): Gets or sets a 16x16 1/96 inch icon for this RibbonGroup. This icon is displayed by the RibbonGroup's quick access toolbar tool strip item.
- [RibbonGroup.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/text-property/llms-full.txt): Overridden. Gets or sets the RibbonGroup's footer text.
- [RibbonGroup.ToolTip Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/tooltip-property/llms-full.txt): Gets an object of type RibbonToolTip that displays text when the mouse pointer hovers over this RibbonGroup.

---

## Nearby

- **Previous:** [RibbonFrameLayoutTab.RibbonItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonframelayouttab/ribbonitem-enumeration/llms-full.txt)
- **Next:** [RibbonGroup Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/constructor/llms-full.txt)
