Back to Devexpress

RichEditToolbarGroupNames.Font Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richedittoolbargroupnames-d67cda3a.md

latest3.0 KB
Original Source

RichEditToolbarGroupNames.Font Property

Gets the name of the toolbar’s Font group.

Namespace : DevExpress.Blazor.RichEdit

Assembly : DevExpress.Blazor.RichEdit.v25.2.dll

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string Font { get; }

Property Value

TypeDescription
String

The “Font” string.

|

Remarks

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

Font NameThe combo box allows users to change the font name.Font SizeThe combo box allows users to change the font size.Font BoldThe checkable button allows users to make the selected text bold.Font ItalicThe checkable button allows users to italicize the selected text.Font ColorThe color edit allows users to change the font color.

Use the Font property to perform the following operations:

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

razor
<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

RichEditToolbarGroupNames Class

RichEditToolbarGroupNames Members

DevExpress.Blazor.RichEdit Namespace