Removes an object of the type RibbonGroup from the collection.

Remove(Windows.Forms.Ribbon.RibbonGroup)

public void Remove(Windows.Forms.Ribbon.RibbonGroup ribbonGroup);
Public Sub Remove(ribbonGroup item As Windows.Forms.Ribbon.RibbonGroup)

Parameters

Parameter Description
ribbonGroup The RibbonGroup to be removed from the collection.

Examples

This code snipped removes a complete ribbon group; in this case, the Font ribbon group.

foreach (RibbonGroup group in ribbonFormattingTab1.RibbonGroups)
{
    if (group.Name == "TXITEM_FontGroup")
    {
        ribbonFormattingTab1.RibbonGroups.Remove(group);
        break;
    }
}