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

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

Syntax

[C#]
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
index

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

item

The control to be inserted to this group.

row

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

Limitations

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