Removes an object of the type Ribbon
public void Remove(Windows.Forms.Ribbon.RibbonGroup ribbonGroup);
Public Sub Remove(ribbonGroup item As Windows.Forms.Ribbon.RibbonGroup)
Parameter | Description |
---|---|
ribbon |
The Ribbon |
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;
}
}