BarItemCollection.AddCustomButton(Int32, String, Func<Task>) Method
In This Article
Adds a custom button to the specified position in the bar item collection.
Namespace: DevExpress.Blazor.Office
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
C#
public IBarButton AddCustomButton(
int index,
string text,
Func<Task> click
)
#Parameters
Name | Type | Description |
---|---|---|
index | Int32 | The position where to insert the button. |
text | String | The button text. |
click | Func<Task> | A delegate method that handles the button’s Click event. |
#Returns
Type | Description |
---|---|
IBar |
The inserted bar button. |
#Remarks
Refer to the IBarButton interface description for more information and an example.
See Also