Back to Devexpress

RibbonContextTabCategoryCollection Class

aspnet-devexpress-dot-web-39ac08af.md

latest5.0 KB
Original Source

RibbonContextTabCategoryCollection Class

A collection of context tab categories in the ASPxRibbon control.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

The following members 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.

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

Implements

IList

IList<RibbonContextTabCategory>

ICollection<RibbonContextTabCategory>

IEnumerable<RibbonContextTabCategory>

IStateManager

DevExpress.Utils.IAssignableCollection

ICollection

IEnumerable

Inheritance

Object StateManagedCollectionBase Collection Collection<RibbonContextTabCategory> RibbonContextTabCategoryCollection<RibbonContextTabCategory> RibbonContextTabCategoryCollection RichEditRibbonContextTabCategoryCollection

SpreadsheetRibbonContextTabCategoryCollection

MVCxRibbonContextTabCategoryCollection

See Also

RibbonContextTabCategoryCollection Members

Ribbon

DevExpress.Web Namespace