Back to Devexpress

RibbonContextTabCategory.Tabs Property

aspnet-devexpress-dot-web-dot-ribboncontexttabcategory-709116c4.md

latest2.5 KB
Original Source

RibbonContextTabCategory.Tabs Property

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

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

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

Example

Online Demo

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

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

Ribbon

RibbonContextTabCategory Class

RibbonContextTabCategory Members

DevExpress.Web Namespace