blazor-devexpress-dot-blazor-dot-htmleditortoolbaritemnames-5c3f9193.md
Gets the Clear Formatting item’s name.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public static string ClearFormatting { get; }
| Type | Description |
|---|---|
| String |
The “ClearFormatting” string.
|
Use this property to perform the following operations with the Clear Formatting item:
The Clear Formatting item is a button in the toolbar’s Font group. This button allows users to clear the formatting of the selected text.
The following code snippet removes the Clear Formatting item from the toolbar:
<DxHtmlEditor Width="700px"
Height="500px"
CustomizeToolbar="@OnCustomizeToolbar"/>
@code {
void OnCustomizeToolbar(IToolbar toolbar) {
IBarGroup fontGroup = toolbar.Groups[HtmlEditorToolbarGroupNames.Font];
fontGroup.Items.Remove(HtmlEditorToolbarItemNames.ClearFormatting);
}
}
See Also
HtmlEditorToolbarItemNames Class