RibbonContextTabCategory Class
An individual context tab category in the ASPxRibbon control.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Related API Members
The following members return RibbonContextTabCategory objects:
Remarks
A context tab category is a container for context tabs, which are hidden tabs that are displayed on demand, e.g., when a corresponding element, such as an image or a table, is selected.
The RibbonContextTabCategory class contains the settings which define an individual context tab category in the ASPxRibbon control. All context tab categories are stored in the ribbon control’s ASPxRibbon.ContextTabCategories collection. Individual categories can be accessed using index notation.
The collection of context tabs, which are represented by the RibbonTab objects, contained in a category, can be accessed by the RibbonContextTabCategory.Tabs property. You can specify a category color using the RibbonContextTabCategory.Color property. To manually change the category visibility based on a selected element, use the client-side ASPxClientHtmlEditor.SetRibbonContextTabCategoryVisible method.
<dx:ASPxRibbon ID="ASPxRibbon" runat="server">
...
<ContextTabCategories>
<dx:RibbonContextTabCategory Name="Picture tools" Color="#d31313" ClientVisible="true">
<Tabs>
<dx:RibbonTab Text="Format">
...
</dx:RibbonTab>
</Tabs>
</dx:RibbonContextTabCategory>
<dx:RibbonContextTabCategory Name="Table tools" Color="#17a300" ClientVisible="true">
<Tabs>
<dx:RibbonTab Text="Design">
...
</dx:RibbonTab>
<dx:RibbonTab Text="Layout">
...
</dx:RibbonTab>
</Tabs>
</dx:RibbonContextTabCategory>
</ContextTabCategories>
</dx:ASPxRibbon>