Overload | Description |
---|---|
Add(String) | Creates and adds a ContextualTabGroup with the specified key. |
Add(ContextualTabGroup) | Adds an object to the end of the Collection. (Inherited from System.Collections.ObjectModel.Collection<ContextualTabGroup>) |
Private xamRibbon As XamRibbon 'Code to Create XamRibbon object.. Private Sub addContextualTabGroup() 'Add ContextualTabGroup Dim contextualTG As New ContextualTabGroup() contextualTG.Caption = "Sample CTG" contextualTG.Key = "CG1" contextualTG.BaseBackColor = Colors.Aqua contextualTG.IsVisible = True xamRibbon.ContextualTabGroups.Add(contextualTG) End Sub
XamRibbon xamRibbon; //Code to Create XamRibbon object.. //Add ContextualTabGroup private void addContextualTabGroup() { ContextualTabGroup contextualTG = new ContextualTabGroup(); contextualTG.Caption = "Sample CTG"; contextualTG.Key = "CG1"; contextualTG.BaseBackColor = Colors.Aqua; contextualTG.IsVisible = true; xamRibbon.ContextualTabGroups.Add(contextualTG); }
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