TXTextControl.Windows.Forms.Ribbon.RibbonItemCollection.Insert Method

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

Syntax

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

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

item

The control to be inserted.

Limitations

If the RibbonItemCollection is optained by a HorizontalRibbonGroup controls are inserted to the group's first row.

If the RibbonItemCollection is optained by a HorizontalRibbonGroup RibbonButtons where the DisplayMode property is set to IconTextRelation.LargeIconLabeled cannot be inserted.

See Also