Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RibbonItemCollectionBuilder<TItemCollectionBuilder>.InsertToggleButton(Int32, Boolean) Method

Inserts a new button item into the ribbon item collection at the specified position.

Namespace: DevExpress.AspNetCore.Office

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

NuGet Package: DevExpress.AspNetCore.Common

#Declaration

C#
public RibbonButtonItemBuilder InsertToggleButton(
    int index,
    bool selected = false
)

#Parameters

Name Type Description
index Int32

The position to insert the item.

#Optional Parameters

Name Type Default Description
selected Boolean False

true to select the button; otherwise, false.

#Returns

Type Description
RibbonButtonItemBuilder

The builder for the ribbon button item.

See Also