# ContextualTabGroup Class

> An object of the ContextualTabGroup class represents a group of ribbon tabs which are only shown in a certain context. A Ribbon control manages a ContextualTabGroupCollection object, which is available through the ContextualTabGroups property. It contains all tab groups belonging to the ribbon.

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

---

### Description

An object of the ContextualTabGroup class represents a group of ribbon tabs which are only shown in a certain context. A [Ribbon](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbon/llms-full.txt) control manages a [ContextualTabGroupCollection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/contextualtabgroupcollection/llms-full.txt) object, which is available through the [ContextualTabGroups](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbon/contextualtabgroups-property/llms-full.txt) property. It contains all tab groups belonging to the ribbon.

### Syntax

```csharp
public class ContextualTabGroup : Component
```

```vbnet
Public Class ContextualTabGroup
    Inherits Component
```

### Examples

The following example creates a Contextual Tab Group instance and configures its header setting for a document workflow.

```csharp
using TXTextControl.Windows.Forms.Ribbon.ContextualTabGroup contextualTabGroup = new();
contextualTabGroup.Header = "Quarterly report";
```

```vbnet
Dim contextualTabGroup As New TXTextControl.Windows.Forms.Ribbon.ContextualTabGroup()
contextualTabGroup.Header = "Quarterly report"
```

---

## In This Section

- [ContextualTabGroup.BackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/contextualtabgroup/backcolor-property/llms-full.txt): Gets or sets the background color of the group's label.
- [ContextualTabGroup Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/contextualtabgroup/constructor/llms-full.txt): Initializes a new instance of the ContextualTabGroup class.
- [ContextualTabGroup.ContextualTabs Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/contextualtabgroup/contextualtabs-property/llms-full.txt): Gets a list of all RibbonTab objects contained in this group.
- [ContextualTabGroup.Header Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/contextualtabgroup/header-property/llms-full.txt): Gets or sets the group's header. The header's text is shown in the application's caption, when the group is visible.
- [ContextualTabGroup.Name Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/contextualtabgroup/name-property/llms-full.txt): Gets or sets the group's name.
- [ContextualTabGroup.Visible Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/contextualtabgroup/visible-property/llms-full.txt): Gets or sets the group's visibility.

---

## Nearby

- **Previous:** [TXTextControl.Windows.Forms.Ribbon Enumerations](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/enumerations/llms-full.txt)
- **Next:** [ContextualTabGroup.BackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/contextualtabgroup/backcolor-property/llms-full.txt)
