TXTextControl.Windows.Forms.Ribbon.RibbonItemCollection.InsertRange Method

Inserts an array of controls at the specified index. These controls must be objects of type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView, RibbonTextBox or RibbonSeperator.

Syntax

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

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

items

An array of controlsto 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