TX Text Control .NET for Windows Forms

Insert Method

Method|Introduced in 24.0
Namespace
TXTextControl.Windows.Forms.Ribbon
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Inserts an object of the type RibbonGroup at the specified index of the collection.

Syntax

public void Insert(int index, RibbonGroup ribbonGroup);

Parameters

ParameterDescription
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.");