Skip to main content

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

Declaration

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