Skip to main content

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.v24.2.dll

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