Back to Devexpress

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

aspnetcore-devexpress-dot-aspnetcore-dot-office-dot-ribbontabcollectionbuilder-3-dot-removebytitle-x28-system-dot-string-x29.md

latest2.0 KB
Original Source

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

Removes a tab with the specified title from the ribbon tab collection.

Namespace : DevExpress.AspNetCore.Office

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

NuGet Package : DevExpress.AspNetCore.Common

Declaration

csharp
public TTabCollectionBuilder RemoveByTitle(
    string title
)

Parameters

NameTypeDescription
titleString

The item title.

|

Returns

TypeDescription
TTabCollectionBuilder

An object that can be used to further configure the tab collection.

|

Remarks

cshtml
@(Html.DevExpress().RichEdit("richEdit")
    .Ribbon(ribbon => ribbon
        .Tabs(tabs => {
            tabs.RemoveByTitle("References");
            //...

The RemoveByTitle method can remove 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

RemoveByName(String)

RibbonTabCollectionBuilder<TTabCollectionBuilder, TTabInfoBuilder, TItemCollectionBuilder> Class

RibbonTabCollectionBuilder<TTabCollectionBuilder, TTabInfoBuilder, TItemCollectionBuilder> Members

DevExpress.AspNetCore.Office Namespace