TXTextControl.Windows.Forms.Ribbon.HorizontalRibbonGroup.Insert Method

Inserts a control of type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView, RibbonTextBox or RibbonSeperator at the specified index.


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

The zero-based index at which the control should be inserted.


The control to be inserted to this group.


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


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

If the number of rows, that contain ribbon items, is larger than the defined number of rows, only those rows are displayed that are in this defined range.

See Also