RibbonItemCollectionBuilder<TItemCollectionBuilder>.AddToggleButton(Boolean) Method
Adds a new button item to the end of the ribbon item collection.
Namespace: DevExpress.AspNetCore.Office
Assembly: DevExpress.AspNetCore.Common.v25.1.dll
NuGet Package: DevExpress.AspNetCore.Common
Declaration
public RibbonButtonItemBuilder AddToggleButton(
bool selected = false
)
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