Back to Devexpress

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

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

latest1.5 KB
Original Source

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

Adds a new tab with the specified title to the end of the ribbon tab collection.

Namespace : DevExpress.AspNetCore.Office

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

NuGet Package : DevExpress.AspNetCore.Common

Declaration

csharp
public TTabInfoBuilder Add(
    string title
)

Parameters

NameTypeDescription
titleString

The tab’s title.

|

Returns

TypeDescription
TTabInfoBuilder

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

|

Remarks

cshtml
@(Html.DevExpress().RichEdit("richEdit")
    .Ribbon(ribbon => ribbon
        .Tabs(tabs => {
            tabs.Clear();
            tabs.Add("History")
                .Items(items => {
                //...

See Also

RibbonTabCollectionBuilder<TTabCollectionBuilder, TTabInfoBuilder, TItemCollectionBuilder> Class

RibbonTabCollectionBuilder<TTabCollectionBuilder, TTabInfoBuilder, TItemCollectionBuilder> Members

DevExpress.AspNetCore.Office Namespace