BarItemExceptionEventArgs Class
In This Article
Contains data for the BarItemExceptionRaised event.
Namespace: DevExpress.Blazor.Office
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
C#
public class BarItemExceptionEventArgs :
HandledEventArgs
#Remarks
The following code snippet handles exceptions that may occur when a user interacts with an item on the Rich Text Editor’s ribbon or toolbar.
Razor
@inject ILogger<RichEdit_ToolbarCustomization> Logger;
@using Microsoft.Extensions.Logging;
<DxRichEdit CustomizeToolbar=OnCustomizeToolbar
BarItemExceptionRaised=OnBarItemExceptionRaised />
@code {
void OnCustomizeToolbar(IToolbar toolbar) {
// ...
}
void OnBarItemExceptionRaised(BarItemExceptionEventArgs args) {
Logger.LogError(args.Exception, args.Exception.Message);
args.Handled = true;
}
}
#Inheritance
Object
EventArgs
HandledEventArgs
BarItemExceptionEventArgs
See Also