Skip to main content
A newer version of this page is available. .

RibbonSettingsBuilder<TContextTabCategoriesBuilder, TContextTabCategoryInfoBuilder, TTabCollectionBuilder, TTabInfoBuilder, TItemCollectionBuilder>.ContextTabCategories(Action<TContextTabCategoriesBuilder>) Method

Allows you to customize the ribbon’s context tab category collection.

Namespace: DevExpress.AspNetCore.Office

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

NuGet Package: DevExpress.AspNetCore.Common

Declaration

public RibbonSettingsBuilder<TContextTabCategoriesBuilder, TContextTabCategoryInfoBuilder, TTabCollectionBuilder, TTabInfoBuilder, TItemCollectionBuilder> ContextTabCategories(
    Action<TContextTabCategoriesBuilder> configure
)

Parameters

Name Type Description
configure Action<TContextTabCategoriesBuilder>

A method that configures the collection of context tab categories.

Returns

Type Description
RibbonSettingsBuilder<TContextTabCategoriesBuilder, TContextTabCategoryInfoBuilder, TTabCollectionBuilder, TTabInfoBuilder, TItemCollectionBuilder>

An object that can be used to further configure the ribbon settings.

Remarks

@(Html.DevExpress().RichEdit("richEdit")
    .Ribbon(ribbon => ribbon
        .ContextTabCategories(categories => {
            categories.Clear();
            categories.AddHeaderAndFooterContextTabCategory();
        })
        //...
See Also