blazor-devexpress-dot-blazor-dot-htmleditortoolbargroupnames-0376d55c.md
Gets the name of the Insert Element group.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public static string InsertElement { get; }
| Type | Description |
|---|---|
| String |
The “InsertElement” string.
|
The Insert Element group in the HtmlEditor‘s toolbar includes the following items:
Show Hyperlink DialogThe button invokes the Hyperlink dialog that allows users to create new hyperlinks.Show Insert Picture DialogThe button invokes the Insert Image dialog that allows users to insert a picture from a local file or a web page.Insert Code BlockThe button allows users to insert a code block.Insert BlockquoteThe button allows users to insert a blockquote.
Use the InsertElement property to perform the following operations:
The following code snippet removes all items from the toolbar’s Insert Element group:
<DxHtmlEditor Width="100%"
Height="200px"
CustomizeToolbar="@OnCustomizeToolbar"/>
@code {
void OnCustomizeToolbar(IToolbar toolbar) {
IBarGroup insertGroup = toolbar.Groups[HtmlEditorToolbarGroupNames.InsertElement];
insertGroup.Items.Clear();
}
}
See Also
HtmlEditorToolbarGroupNames Class