Skip to main content

RichEditToolbarGroupNames.Font Property

Gets the name of the toolbar’s Font group.

Namespace: DevExpress.Blazor.RichEdit

Assembly: DevExpress.Blazor.RichEdit.v24.1.dll

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public static string Font { get; }

Property Value

Type Description
String

The “Font” string.

Remarks

The Rich Text Editor’s toolbar consists of multiple groups. The Font group includes the following items:

Font Name
The combo box allows users to change the font name.
Font Size
The combo box allows users to change the font size.
Font Bold
The checkable button allows users to make the selected text bold.
Font Italic
The checkable button allows users to italicize the selected text.
Font Color
The color edit allows users to change the font color.

Font Group

Use the Font property to perform the following operations:

The following code snippet removes the Font Color item from the toolbar.

<DxRichEdit CustomizeToolbar="onCustomizeToolbar"
            BarMode=BarMode.Toolbar/>

@code {
    void onCustomizeToolbar(IToolbar toolbar) {
        string groupName = RichEditToolbarGroupNames.Font;
        string itemName = RichEditBarItemNames.FontColor;
        toolbar.Groups[groupName].Items.Remove(itemName);
    }
}
See Also