Tab
A newer version of this page is available. Switch to the current version.

RibbonContextTabCategoryCollection Class

A collection of context tab categories in the ASPxRibbon control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class RibbonContextTabCategoryCollection :
    RibbonContextTabCategoryCollection<RibbonContextTabCategory>
Public Class RibbonContextTabCategoryCollection
    Inherits RibbonContextTabCategoryCollection(Of RibbonContextTabCategory)

Related API Members

The following members accept/return RibbonContextTabCategoryCollection objects:

Remarks

A ribbon control holds its context tab categories in a collection represented by an instance of the RibbonContextTabCategoryCollection class and can be accessed by the ASPxRibbon.ContextTabCategories property. The properties and methods exposed by the RibbonContextTabCategoryCollection class can be used to perform common collection operations such as adding new or deleting existing categories. Each item of the collection is represented by a RibbonContextTabCategory object. Individual categories can be accessed using indexer notation.

ASPxRibbon_ContextTabCategories

<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>

Online Demo

Ribbon - Context Tabs

See Also