To add a tab to the Ribbon, you can use the smart designer, collection editor, or add code. Each option is described below. To learn how to add a contextual tab, see Adding a Contextual Tab to the Ribbon.
Complete the following steps:
. This enables Ribbon floating toolbar:Complete the following steps:


To add a Ribbon tab, add the following code to your project:
To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
' Add a tab to the Ribbon Dim RibbonTab2 As RibbonTab = New RibbonTab() ' Label the tab RibbonTab2.Text = "Write" C1Ribbon1.Tabs.Add(RibbonTab2) |
|
To write code in C#
| C# |
Copy Code
|
|---|---|
// Add a tab to the Ribbon RibbonTab RibbonTab2 = new RibbonTab(); // Label the tab RibbonTab2.Text = "Write"; C1Ribbon1.Tabs.Add(RibbonTab2); |
|