# HorizontalRibbonGroup Class

> The HorizontalRibbonGroup class represents a logical group of controls as they appear on a RibbonTab. An instance of a HorizontalRibbonGroup 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 HorizontalRibbonGroup are arranged in rows. To arrange them in columns it is recommend to use an instance of type RibbonGroup. A HorizontalRibbonGroup is inherited from the RibbonGroup class. The following describes only the properties, methods and events defined through the HorizontalRibbonGroup class.

- **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` › `TXTextControl.Windows.Forms.Ribbon.RibbonGroup`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Windows.Forms.Ribbon > HorizontalRibbonGroup Class
- **2084 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/horizontalribbongroup/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/horizontalribbongroup/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/horizontalribbongroup/llms-full.txt

---

### Description

The HorizontalRibbonGroup 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). An instance of a HorizontalRibbonGroup 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 of a HorizontalRibbonGroup are arranged in rows. To arrange them in columns it is recommend to use an instance of type [RibbonGroup](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/llms-full.txt). A HorizontalRibbonGroup is inherited from the [RibbonGroup](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/llms-full.txt) class. The following describes only the properties, methods and events defined through the HorizontalRibbonGroup class.

### Syntax

```csharp
public class HorizontalRibbonGroup : RibbonGroup
```

```vbnet
Public Class HorizontalRibbonGroup
    Inherits RibbonGroup
```

### Examples

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

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

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

---

## In This Section

- [HorizontalRibbonGroup.Add Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/horizontalribbongroup/add-method/llms-full.txt): Adds a control of type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView, RibbonTextBox or RibbonSeperator to the end of a specific row inside the horizontal ribbon group.
- [HorizontalRibbonGroup.AddRange Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/horizontalribbongroup/addrange-method/llms-full.txt): Adds an array of controls to the end of a specific row. These controls must be objects of type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView, RibbonTextBox or RibbonSeperator.
- [HorizontalRibbonGroup Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/horizontalribbongroup/constructor/llms-full.txt): Initializes a new instance of the HorizontalRibbonGroup class.
- [HorizontalRibbonGroup.Insert Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/horizontalribbongroup/insert-method/llms-full.txt): Inserts a control of type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView, RibbonTextBox or RibbonSeperator at the specified index.
- [HorizontalRibbonGroup.InsertRange Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/horizontalribbongroup/insertrange-method/llms-full.txt): Inserts an array of controls at the specified index. These controls must be objects of type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView, RibbonTextBox or RibbonSeperator.

---

## Nearby

- **Previous:** [DialogBoxLauncher.Visible Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/dialogboxlauncher/visible-property/llms-full.txt)
- **Next:** [HorizontalRibbonGroup.Add Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/horizontalribbongroup/add-method/llms-full.txt)
