aspnet-16838-components-html-editor-concepts-toolbars-ribbon-toolbar.md
The ribbon toolbar is displayed in the ASPxHtmlEditor when the ASPxHtmlEditor.ToolbarMode property is set to Ribbon.
The ASPxHtmlEditor.RibbonTabs property allows you to access the collection of ribbon tabs. This collection is the HtmlEditorRibbonTabCollection class instance. To access, add, or delete an individual tab (a RibbonTab class descendant), you can use its index.
A ribbon tab displays ribbon items that are divided into logical groups. To access the RibbonTab object’s group collection, use the RibbonTab.Groups property. An individual group is a RibbonGroup class instance. A group contains an item collection. Use the RibbonGroup.Items property to access this collection. An item is a RibbonItemBase class descendant.
Context Tabs
A context tab is a hidden ribbon tab that is displayed when a corresponding element (such as an image or a table) is selected. Since one element can correspond to multiple context tabs, tabs are combined into categories. To access the collection of categories, use the ASPxHtmlEditor.RibbonContextTabCategories property.
Every category contains the collection of context tabs. Use the RibbonContextTabCategory.Tabs property to access this collection. To specify a category color, use the RibbonContextTabCategory.Color property. To manually change a category’s visibility based on a selected element, use the ASPxClientHtmlEditor.SetRibbonContextTabCategoryVisible method.
Tip
You can use the ASPxHtmlEditor Designer to modify ribbon tabs, groups, and items at design time.
Default tabs contain predefined sets of ribbon items, grouped by functionality. ASPxHtmlEditor displays the following default tabs:
Default Context Tabs
ASPxHtmlEditor has the Layout context tab that contains table-related commands. The control displays this default context tab when a cursor is in a table.
At runtime, call the following methods to add all default tabs to the editor: