Version

Remove Method

Removes the ContextualTabGroup with the specified key.
Overload List
OverloadDescription
Remove(String)Removes the ContextualTabGroup with the specified key.  
Remove(ContextualTabGroup)Removes the first occurrence of a specific object from the Collection. (Inherited from System.Collections.ObjectModel.Collection<ContextualTabGroup>)
Example
ContextualTabGroupCollection Remove Method

Private xamRibbon As XamRibbon 
Private Sub RemoveContextualTabGroup() 
'Code to Create XamRibbon object.. 

'Remove ContextualTabGroup 
    Dim CTG1 As ContextualTabGroup = xamRibbon.ContextualTabGroups(0) 
    xamRibbon.ContextualTabGroups.Remove(CTG1) 
End Sub
XamRibbon xamRibbon;
//Code to Create XamRibbon object..
 
//Remove ContextualTabGroup
void RemoveContextualTabGroup()
{
	ContextualTabGroup CTG1 = xamRibbon.ContextualTabGroups[0];
	xamRibbon.ContextualTabGroups.Remove(CTG1);
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also