# RibbonGroup.HorizontalContentAlignment Property

> Gets or sets the ribbon group's horizontal content alignment. The default value is TXTextControl.HorizontalAlignment.Left.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 27.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
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Windows.Forms.Ribbon > RibbonGroup.HorizontalContentAlignment Property
- **395 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/horizontalcontentalignment-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/horizontalcontentalignment-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/horizontalcontentalignment-property/llms-full.txt

---

### Description

Gets or sets the ribbon group's horizontal content alignment. The default value is TXTextControl.HorizontalAlignment.Left.

### Syntax

```csharp
public HorizontalAlignment HorizontalContentAlignment { get; set; }
```

```vbnet
Public Property HorizontalContentAlignment As HorizontalAlignment
```

### Members

| Value | Description |
|---|---|
| Left | The content is left aligned. |
| Right | The content is right aligned. |
| Center | The content is centered. |
| Justify | This value cannot be used with this property. |

### Examples

The following example uses `RibbonGroup.HorizontalContentAlignment` to configure horizontal content alignment as part of the ribbon group workflow. The change is then applied to the active document or user interface.

```csharp
ribbonGroup.HorizontalContentAlignment = TXTextControl.HorizontalAlignment.Center;
ribbonGroup.Update();
```

```vbnet
ribbonGroup.HorizontalContentAlignment = TXTextControl.HorizontalAlignment.Center
ribbonGroup.Update()
```

---

## Nearby

- **Previous:** [RibbonGroup.DialogBoxLauncher Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/dialogboxlauncher-property/llms-full.txt)
- **Next:** [RibbonGroup.IsAddToQuickAccessToolbarEnabled Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/isaddtoquickaccesstoolbarenabled-property/llms-full.txt)
