TX Text Control .NET for Windows Forms

ContextualTabGroup Class

Class|Introduced in 24.0
Namespace
TXTextControl.Windows.Forms.Ribbon
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Windows.Forms.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.Windows.Forms.dll from the setup.
Inherits
  1. Component
  2. ContextualTabGroup

Description

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.

Syntax

public class ContextualTabGroup : Component

Examples

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

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

Members

Constructors

ConstructorDescription
ContextualTabGroupInitializes a new instance of the ContextualTabGroup class.

Properties

PropertyDescription
BackColorGets or sets the background color of the group's label.
ContextualTabsGets a list of all RibbonTab objects contained in this group.
HeaderGets or sets the group's header. The header's text is shown in the application's caption, when the group is visible.
NameGets or sets the group's name.
VisibleGets or sets the group's visibility.