Back to Devexpress

HtmlEditorToolbarGroupNames.Font Property

blazor-devexpress-dot-blazor-dot-htmleditortoolbargroupnames-6c5b904d.md

latest3.9 KB
Original Source

HtmlEditorToolbarGroupNames.Font Property

Gets the name of the Font group.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public static string Font { get; }

Property Value

TypeDescription
String

The “Font” string.

|

Remarks

The Font group in the HtmlEditor‘s toolbar 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 StrikethroughThe checkable button allows users to cross out the selected text.Font UnderlineThe checkable button allows users to underline the selected text.Font ColorThe color editor allows users to change the font color.Highlight TextThe color editor allows users to highlight the selected text.Clear FormattingThe button allows users to clear the formatting of the selected text.Font SubcsriptThe checkable button allows users to format the selected text as subscript.Font SuperscriptThe checkable button allows users to format the selected text as superscript.

Use the Font property to perform the following operations:

The following code snippet removes all items from the toolbar’s Font group:

razor
<DxHtmlEditor Width="100%"
              Height="200px"
              CustomizeToolbar="@OnCustomizeToolbar"/>

@code {
    void OnCustomizeToolbar(IToolbar toolbar) {
        IBarGroup fontGroup = toolbar.Groups[HtmlEditorToolbarGroupNames.Font];
        fontGroup.Items.Clear();
    }
}

See Also

HtmlEditorToolbarGroupNames Class

HtmlEditorToolbarGroupNames Members

DevExpress.Blazor Namespace