Skip to main content

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.1.dll

NuGet Package: DevExpress.AspNetCore.Common

Declaration

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