Tab

RibbonContextTabCategory.Tabs Property

Gets the collection of tabs contained in the current context tab category.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

public RibbonTabCollection Tabs { get; }
Public ReadOnly Property Tabs As RibbonTabCollection

Property Value

Type Description
RibbonTabCollection

A RibbonTabCollection object that is the collection of tabs.

Remarks

The Tabs property provides access to a collection that contains all the tabs of the current context tab category. This collection provides standard means to manipulate (add or remove) tabs within the tab control. A particular tab can be accessed using index notation.

Examples

Online Demo

The complete sample is available in the Context Tabs online demo.

ASPxRibbon_ContextTabCategories

<dx:ASPxRibbon ID="ASPxRibbon" runat="server" >
     <Tabs>...</Tabs>
     <ContextTabCategories>
          <dx:RibbonContextTabCategory Name="Picture tools" Color="#d31313" ClientVisible="true">
               <Tabs>
                    <dx:RibbonTab Name="Format" 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>
See Also