Version

Item Property (ContextualTabGroupCollection)

Returns the ContextualTabGroup with the specified key.
Syntax
'Declaration
 
Public Shadows ReadOnly Default Property Item( _
   ByVal key As String _
) As ContextualTabGroup
public new ContextualTabGroup this[ 
   string key
]; {get;}

Parameters

key
The key of the ContextualTabGroup to return.

Property Value

The ContextualTabGroup with the specified key. or null if not ContextualTabGroup exists with the specified key.
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