# RibbonGroupCollection.Insert Method

> Inserts an object of the type RibbonGroup at the specified index of the collection.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **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
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Windows.Forms.Ribbon > RibbonGroupCollection.Insert Method
- **501 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroupcollection/insert-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroupcollection/insert-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroupcollection/insert-method/llms-full.txt

---

### Description

Inserts an object of the type [RibbonGroup](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/llms-full.txt) at the specified index of the collection.

### Syntax

```csharp
public void Insert(int index, RibbonGroup ribbonGroup);
```

```vbnet
Public Sub Insert(index As Integer, ribbonGroup As RibbonGroup)
```

### Parameters

| Parameter | Description |
|---|---|
| index | The zero-based index at which the [RibbonGroup](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/llms-full.txt) should be inserted. |
| ribbonGroup | The [RibbonGroup](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbongroup/llms-full.txt) to be inserted. |

### Examples

The following example uses Insert in a focused Ribbon Group Collection workflow. The created object is then available to the surrounding document workflow.

```csharp
ribbonGroupCollection.Insert(1, new TXTextControl.Windows.Forms.Ribbon.RibbonGroup());
Console.WriteLine("Ribbon Group Collection is ready for use.");
```

```vbnet
ribbonGroupCollection.Insert(1, New TXTextControl.Windows.Forms.Ribbon.RibbonGroup())
Console.WriteLine("Ribbon Group Collection is ready for use.")
```

---

## Nearby

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