TXTextControl.Windows.Forms.Ribbon.HorizontalRibbonGroup.Add Method

Adds a control of type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView, RibbonTextBox or RibbonSeperator to the end of a specific row inside the horizontal ribbon group.


public int Add(System.Windows.Forms.Control item, int row);
[Visual Basic]
Public Function Add(ByVal item As System.Windows.Forms.Control, ByVal row As Integer) As Integer
Parameter Description

The control to be added to this group.


The row where to add the control. Valid values are 0, 1 or 2.

Return Value

The RibbonItems property's collection index at which the value has been added.


RibbonButtons where the DisplayMode property is set to IconTextRelation.LargeIconLabeled cannot be added to a horizontal ribbon group.

See Also