TXTextControl.Windows.Forms.Ribbon.HorizontalRibbonGroup.Add Method

Adds a control of type RibbonButton, RibbonComboBox, RibbonLabel, RibbonListView, RibbonTextBox or RibbonSeperator to the end of a specific row inside the horizontal ribbon group.

Syntax

[C#]
public int Add(System.Windows.Forms.Control item, int row);
[Visual Basic]
Public Function Add(ByVal item As System.Windows.Forms.Control, ByVal row As Integer) As Integer
Parameter Description
item

The control to be added to this group.

row

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

Return Value

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

Limitations

RibbonButtons where the DisplayMode property is set to IconTextRelation.LargeIconLabeled cannot be added to a horizontal ribbon group.

See Also