TX Text Control .NET for Windows Forms

Add 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

Adds an object of the type RibbonGroup to the end of the collection.

Syntax

public int Add(RibbonGroup ribbonGroup);

Parameters

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