Skip to main content

BarItemException Class

An exception that may occur when a user interacts with an item on the Rich Text Editor’s ribbon or toolbar.

Namespace: DevExpress.Blazor.Office

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public class BarItemException :
    Exception

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.

@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;
    }
}

Run Demo: Toolbar Customization Run Demo: Ribbon Customization

Implements

Inheritance

Object
Exception
BarItemException
See Also