RichEditToolbarGroupNames.Field Property
In This Article
Gets the name of the toolbar’s Field group.
Namespace: DevExpress.Blazor.RichEdit
Assembly: DevExpress.Blazor.RichEdit.v24.2.dll
NuGet Package: DevExpress.Blazor.RichEdit
#Declaration
C#
public static string Field { get; }
#Property Value
Type | Description |
---|---|
String | The “Field” string. |
#Remarks
The Rich Text Editor’s toolbar consists of multiple groups. The Field group includes the Insert Field Menu item that allows users to insert fields at the caret position.
Use the Field
property to perform the following operations:
The following code snippet removes the Insert Field Menu item from the toolbar.
<DxRichEdit CustomizeToolbar="onCustomizeToolbar"
BarMode=BarMode.Toolbar/>
@code {
void onCustomizeToolbar(IToolbar toolbar) {
string groupName = RichEditToolbarGroupNames.Field;
string itemName = RichEditBarItemNames.InsertFieldMenu;
toolbar.Groups[groupName].Items.Remove(itemName);
}
}
See Also