TXTextControl.Windows.Forms.Ribbon.RibbonItemCollection.Add Method

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

Syntax

[C#]
public int Add(System.Windows.Forms.Control item);
[Visual Basic]
Public Function Add(ByVal item As System.Windows.Forms.Control) As Integer
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.

See Also