# RibbonSeperator Class

> The RibbonSeperator class represents a control that provides a separator between elements in a HorizontalRibbonGroup, an ApplicationMenu or a drop-down menu of a RibbonMenuButton. The separator cannot be added to the RibbonItems collection of a RibbonGroup which is not an object of type HorizontalRibbonGroup. The RibbonSeperator class is inherited from the System.Windows.Forms.Control class. The following describes only the properties, methods and events defined through the RibbonSeperator class. For a list of properties, methods and events inherited from the System.Windows.Forms.Control 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.Control`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Windows.Forms.Ribbon > RibbonSeperator Class
- **898 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonseperator/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonseperator/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonseperator/llms-full.txt

---

### Description

The RibbonSeperator class represents a control that provides a separator between elements in a [HorizontalRibbonGroup](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/horizontalribbongroup/llms-full.txt), an [ApplicationMenu](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbon/applicationmenuitems-property/llms-full.txt) or a [drop-down menu](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonmenubutton/dropdownitems-property/llms-full.txt) of a [RibbonMenuButton](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonmenubutton/llms-full.txt). The separator cannot be added to the [RibbonItems](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/ribbonitems-property/llms-full.txt) [collection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonitemcollection/llms-full.txt) of a [RibbonGroup](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/llms-full.txt) which is not an object of type [HorizontalRibbonGroup](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/horizontalribbongroup/llms-full.txt). The RibbonSeperator class is inherited from the `System.Windows.Forms.Control` class. The following describes only the properties, methods and events defined through the RibbonSeperator class. For a list of properties, methods and events inherited from the `System.Windows.Forms.Control` class see the .NET Framework reference.

### Syntax

```csharp
public class RibbonSeperator : Control
```

```vbnet
Public Class RibbonSeperator
    Inherits Control
```

### Examples

The following example creates a Ribbon Seperator instance and configures its enabled setting for a document workflow.

```csharp
using TXTextControl.Windows.Forms.Ribbon.RibbonSeperator ribbonSeperator = new();
ribbonSeperator.Enabled = true;
```

```vbnet
Dim ribbonSeperator As New TXTextControl.Windows.Forms.Ribbon.RibbonSeperator()
ribbonSeperator.Enabled = True
```

---

## In This Section

- [RibbonSeperator.Alignment Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonseperator/alignment-property/llms-full.txt): Gets the alignment of this RibbonSeperator. If the separator is added to the drop down menu of a RibbonMenuButton or to the Ribbon.ApplicationMenuItems collection the separator is aligned horizontally. Adding the separator to a HorizontalRibbonGroup the separator causes a vertical alignment.
- [RibbonSeperator Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonseperator/constructor/llms-full.txt): Initializes a new instance of the RibbonSeperator class.
- [RibbonSeperator.ParentCollection Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonseperator/parentcollection-property/llms-full.txt): Gets the RibbonItemCollection that contains this RibbonSeperator.

---

## Nearby

- **Previous:** [RibbonReportingTab.RibbonItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonreportingtab/ribbonitem-enumeration/llms-full.txt)
- **Next:** [RibbonSeperator.Alignment Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonseperator/alignment-property/llms-full.txt)
