Adds a control of the type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView, RibbonTextBox or RibbonSeperator to the end of the collection.

Add(System.Windows.Forms.Control)

public int Add(System.Windows.Forms.Control item);
Public Function Add(ByVal item As System.Windows.Forms.Control) As Integer

Parameters

Parameter Description
item The control to be added to the end of this collection.

Return Value

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

Limitations

If the RibbonItemCollection is optained by a HorizontalRibbonGroup controls are added 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 added.