Back to Devexpress

RibbonItemCollectionBuilder<TItemCollectionBuilder>.RemoveAt(Int32) Method

aspnetcore-devexpress-dot-aspnetcore-dot-office-dot-ribbonitemcollectionbuilder-1-dot-removeat-x28-system-dot-int32-x29.md

latest1.7 KB
Original Source

RibbonItemCollectionBuilder<TItemCollectionBuilder>.RemoveAt(Int32) Method

Removes an item at the specified position from the ribbon item collection.

Namespace : DevExpress.AspNetCore.Office

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

NuGet Package : DevExpress.AspNetCore.Common

Declaration

csharp
public TItemCollectionBuilder RemoveAt(
    int index
)

Parameters

NameTypeDescription
indexInt32

A zero-based index of the item to remove.

|

Returns

TypeDescription
TItemCollectionBuilder

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

|

Remarks

cshtml
@(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);
                    //...

See Also

Server-Side Ribbon Customization

Online Demo - Ribbon Customization

RibbonItemCollectionBuilder<TItemCollectionBuilder> Class

RibbonItemCollectionBuilder<TItemCollectionBuilder> Members

DevExpress.AspNetCore.Office Namespace