RibbonItemCollectionBuilder<TItemCollectionBuilder>.AddToggleButton(String, String, Boolean, String, Boolean, Boolean) Method
In This Article
Adds a new button item to the end of the ribbon item collection.
Namespace: DevExpress.AspNetCore.Office
Assembly: DevExpress.AspNetCore.Common.v24.2.dll
NuGet Package: DevExpress.AspNetCore.Common
#Declaration
C#
public TItemCollectionBuilder AddToggleButton(
string text,
string commandName,
bool beginGroup,
string icon,
bool showText,
bool selected = false
)
#Parameters
Name | Type | Description |
---|---|---|
text | String | The item’s text. |
command |
String | The item’s command name. |
begin |
Boolean | true, to display a separator before the item; otherwise, false. |
icon | String | An icon identifier. |
show |
Boolean | true to display the item's text; otherwise, false. |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
selected | Boolean | False | true to select the button; otherwise, false. |
#Returns
Type | Description |
---|---|
TItem |
An item collection builder. |
See Also