TX Text Control .NET for Windows Forms

Remove 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

Removes an object of the type RibbonGroup from the collection.

Syntax

public void Remove(RibbonGroup ribbonGroup);

Parameters

ParameterDescription
ribbonGroup

The RibbonGroup to be removed from the collection.

Examples

The following example removes the first ribbon group when the collection is not empty.

if (ribbonGroupCollection.Count > 0)
{
    TXTextControl.Windows.Forms.Ribbon.RibbonGroup ribbonGroup = ribbonGroupCollection[1];
    ribbonGroupCollection.Remove(ribbonGroup);
}