Insert 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
Inserts an object of the type RibbonGroup at the specified index of the collection.
Syntax
public void Insert(int index, RibbonGroup ribbonGroup);Public Sub Insert(index As Integer, ribbonGroup As RibbonGroup)Parameters
| Parameter | Description |
|---|---|
| index | The zero-based index at which the RibbonGroup should be inserted. |
| ribbonGroup | The RibbonGroup to be inserted. |
Examples
The following example uses Insert in a focused Ribbon Group Collection workflow. The created object is then available to the surrounding document workflow.
ribbonGroupCollection.Insert(1, new TXTextControl.Windows.Forms.Ribbon.RibbonGroup());
Console.WriteLine("Ribbon Group Collection is ready for use.");ribbonGroupCollection.Insert(1, New TXTextControl.Windows.Forms.Ribbon.RibbonGroup())
Console.WriteLine("Ribbon Group Collection is ready for use.")