# RibbonGroupCollection Class

> An instance of the RibbonGroupCollection class contains objects of type RibbonGroup and can be obtained with the RibbonTab.RibbonGroups property. It is inherited from the abstract class System.Collections.CollectionBase and implements the System.Collections.IEnumerable and System.Collections.IEnumerator interfaces. The following describes only the properties, methods and events defined through the RibbonGroupCollection class. For a list of properties, methods and events of these classes and interfaces 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.Collections.CollectionBase`
- **Implements:** `System.Collections.IEnumerator`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Windows.Forms.Ribbon > RibbonGroupCollection Class
- **855 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroupcollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroupcollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroupcollection/llms-full.txt

---

### Description

An instance of the RibbonGroupCollection class contains objects of type [RibbonGroup](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/llms-full.txt) and can be obtained with the [RibbonTab.RibbonGroups](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontab/ribbongroups-property/llms-full.txt) property. It is inherited from the abstract class `System.Collections.CollectionBase` and implements the `System.Collections.IEnumerable` and `System.Collections.IEnumerator` interfaces. The following describes only the properties, methods and events defined through the RibbonGroupCollection class. For a list of properties, methods and events of these classes and interfaces see the .NET Framework reference.

### Syntax

```csharp
public class RibbonGroupCollection : CollectionBase, IEnumerator
```

```vbnet
Public Class RibbonGroupCollection
    Inherits CollectionBase
    Implements IEnumerator
```

### Examples

The following example includes the item value from a Ribbon Group Collection object in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Item: {ribbonGroupCollection[10]}");
Console.WriteLine("Ribbon Group Collection is ready for use.");
```

```vbnet
Console.WriteLine($"Item: {ribbonGroupCollection.Item(10)}")
Console.WriteLine("Ribbon Group Collection is ready for use.")
```

---

## In This Section

- [RibbonGroupCollection.Add Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroupcollection/add-method/llms-full.txt): Adds an object of the type RibbonGroup to the end of the collection.
- [RibbonGroupCollection.Insert Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroupcollection/insert-method/llms-full.txt): Inserts an object of the type RibbonGroup at the specified index of the collection.
- [RibbonGroupCollection.Item Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroupcollection/item-property/llms-full.txt): Gets an object of type RibbonGroup from the collection. This property is the indexer for the RibbonItemCollection class.
- [RibbonGroupCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroupcollection/remove-method/llms-full.txt): Removes an object of the type RibbonGroup from the collection.

---

## Nearby

- **Previous:** [RibbonGroup.ToolTip Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/tooltip-property/llms-full.txt)
- **Next:** [RibbonGroupCollection.Add Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroupcollection/add-method/llms-full.txt)
