Remove Method
- Namespace
TXTextControl.Windows. Forms. Ribbon
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Removes an object of the type RibbonGroup from the collection.
Syntax
public void Remove(RibbonGroup ribbonGroup);Public Sub Remove(ribbonGroup As RibbonGroup)Parameters
| Parameter | Description |
|---|---|
| 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);
}If ribbonGroupCollection.Count > 0 Then
Dim ribbonGroup As TXTextControl.Windows.Forms.Ribbon.RibbonGroup = ribbonGroupCollection.Item(1)
ribbonGroupCollection.Remove(ribbonGroup)
End If