Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RibbonTabCollectionBuilder<TTabCollectionBuilder, TTabInfoBuilder, TItemCollectionBuilder>.GetByTitle(String) Method

Retrieves a tab from the collection by a tab title.

Namespace: DevExpress.AspNetCore.Office

Assembly: DevExpress.AspNetCore.Common.v24.2.dll

NuGet Package: DevExpress.AspNetCore.Common

#Declaration

C#
public TTabInfoBuilder GetByTitle(
    string title
)

#Parameters

Name Type Description
title String

The title of the tab.

#Returns

Type Description
TTabInfoBuilder

The tab builder.

#Remarks

The GetByTitle method returns a tab object by its title.

@(Html.DevExpress().RichEdit("richEdit")
    .Ribbon(ribbon => ribbon
        .Tabs(tabs => {
            tabs.GetByTitle("Home")
                .Items(items => {
                    // removes the first item on the Home tab
                    items.RemoveAt(0);
                    // ...

The GetByTitle method can return a default ribbon tab specified by its initial title, regardless of whether you change or localize the title. The default tab titles are the following: File, Home, Insert, Page Layout, References, Mail Merge, View, Header & Footer, Design, Layout, and Format.

See Also