RibbonItemCollectionBuilder<TItemCollectionBuilder>.AddButton(String, String, Boolean, String, Boolean) Method
In This Article
Adds a new item with the specified settings 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 AddButton(
string text,
string commandName,
bool beginGroup,
string icon,
bool showText
)
#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 | The item’s icon identifier. |
show |
Boolean | true, to display the item text; otherwise, false |
#Returns
Type | Description |
---|---|
TItem |
An object that can be used to further configure the item collection. |
See Also