The HorizontalRibbonGroup class represents a logical group of controls as they appear on a RibbonTab. An instance of a HorizontalRibbonGroup can be added to a RibbonTab by using the Add method of its RibbonGroupCollection which is represented by the RibbonTab.RibbonGroups property. The controls of a HorizontalRibbonGroup are arranged in rows. To arrange them in columns it is recommend to use an instance of type RibbonGroup. A HorizontalRibbonGroup is inherited from the RibbonGroup class. The following describes only the properties, methods and events defined through the HorizontalRibbonGroup class.

Syntax

public class HorizontalRibbonGroup : RibbonGroup
Public Class HorizontalRibbonGroup
  Inherits RibbonGroup

Introduced: X14.

Examples

The following example shows the 'HorizontalRibbonGroup' class. The class uses its 'KeyTip' property to set the keyboard shortcut of the ribbongroup. Further, it sets the 'IsAddToQuickAccessToolbarEnabled' property value to 'true' so that the ribbonGroup can be added to the quick access toolbar.

TXTextControl.Windows.Forms.Ribbon.HorizontalRibbonGroup  ribbonGroup = new TXTextControl.Windows.Forms.Ribbon.HorizontalRibbonGroup();
   ribbonGroup.KeyTip = "H";
   ribbonGroup.IsAddToQuickAccessToolbarEnabled = true
ribbonGroup.KeyTip = "H"
Dim ribbonGroup As TXTextControl.Windows.Forms.Ribbon.HorizontalRibbonGroup = New TXTextControl.Windows.Forms.Ribbon.HorizontalRibbonGroup()
   ribbonGroup.IsAddToQuickAccessToolbarEnabled = True

Constructors

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

Methods

Method Description
Add Adds a control of type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView, RibbonTextBox or RibbonSeperator to the end of a specific row inside the horizontal ribbon group.
AddRange Adds an array of controls to the end of a specific row.
Insert Inserts a control of type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView, RibbonTextBox or RibbonSeperator at the specified index.
InsertRange Inserts an array of controls at the specified index.

Properties

Property Description
DialogBoxLauncher Gets an object of type DialogBoxLauncher which represents the RibbonGroup's dialog box launcher item.
(Inherited from RibbonGroup)
HorizontalContentAlignment Gets or sets the ribbon group's horizontal content alignment.
(Inherited from RibbonGroup)
IsAddToQuickAccessToolbarEnabled Gets or sets a value whether the RibbonGroup can be added to the quick access toolbar.
(Inherited from RibbonGroup)
KeyTip Gets or sets the keyboard shortcut of the RibbonGroup.
(Inherited from RibbonGroup)
LargeIcon Gets or sets an icon for this RibbonGroup.
(Inherited from RibbonGroup)
RibbonItems Gets a collection of all items contained in this group.
(Inherited from RibbonGroup)
RowCount Gets or sets the number of rows in the RibbonGroup.
(Inherited from RibbonGroup)
ShowSeperator Gets or sets a value whether the RibbonGroup's separator is shown.
(Inherited from RibbonGroup)
SmallIcon Gets or sets a 16x16 1/96 inch icon for this RibbonGroup.
(Inherited from RibbonGroup)
Text Overridden.
(Inherited from RibbonGroup)
ToolTip Gets an object of type RibbonToolTip that displays text when the mouse pointer hovers over this RibbonGroup.
(Inherited from RibbonGroup)