blazor-devexpress-dot-blazor-dot-richedit-dot-richedittoolbargroupnames-d67cda3a.md
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
public static string Font { get; }
| Type | Description |
|---|---|
| String |
The “Font” string.
|
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.
<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