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
Public Class ContextualTabGroup

Introduced: X14.

Examples

The following example shows a ContextualTabGroup class. The class uses its two properties (Name and BackColor) to set the name and color of the group.

TXTextControl.Windows.Forms.Ribbon.ContextualTabGroup tabGroup = new TXTextControl.Windows.Forms.Ribbon.ContextualTabGroup();
    tabGroup.Name = "-------";
    tabGroup.BackColor = System.Drawing.Color.White;
Dim tabGroup As TXTextControl.Windows.Forms.Ribbon.ContextualTabGroup = New TXTextControl.Windows.Forms.Ribbon.ContextualTabGroup()
   tabGroup.Name = "-------"
   tabGroup.BackColor = System.Drawing.Color.White

Constructors

Constructor Description
ContextualTabGroup Initializes a new instance of the ContextualTabGroup class.

Properties

Property Description
BackColor Gets or sets the background color of the group's label.
ContextualTabs Gets a list of all RibbonTab objects contained in this group.
Header Gets or sets the group's header.
Name Gets or sets the group's name.
Visible Gets or sets the group's visibility.
OSZAR »