Add Method
- Namespace
TXTextControl.Windows. Forms. Ribbon
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Adds an object of the type RibbonGroup to the end of the collection.
Syntax
public int Add(RibbonGroup ribbonGroup);Public Function Add(ribbonGroup As RibbonGroup) As IntegerParameters
| Parameter | Description |
|---|---|
| ribbonGroup | The RibbonGroup to be added to the end of the collection. |
Return Value
The collection's index at which the value has been added.
Examples
The following example adds an item to the ribbon group collection.
var result = ribbonGroupCollection.Add(new TXTextControl.Windows.Forms.Ribbon.RibbonGroup());
Console.WriteLine($"Add result: {result}");Dim result = ribbonGroupCollection.Add(New TXTextControl.Windows.Forms.Ribbon.RibbonGroup())
Console.WriteLine($"Add result: {result}")