IToolbar Interface
The built-in toolbar for the Rich Text Editor.
Namespace: DevExpress.Blazor.Office
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
public interface IToolbar
Remarks
When you set the BarMode property to BarMode.Toolbar
, the Rich Text Editor displays its command bar as a toolbar.
The IToolbar
interface defines the toolbar. Use this interface in the CustomizeToolbar event.
The interface’s Groups property allows you to access the toolbar’s group collection. You can obtain an individual group by its name or index.
<DxRichEdit BarMode=BarMode.Toolbar CustomizeToolbar=OnCustomizeToolbar />
@code {
void OnCustomizeToolbar(IToolbar toolbar) {
// Returns the first group
IBarGroup firstGroup = toolbar.Groups[0];
// Returns the Table group
IBarGroup tableGroup = toolbar.Groups[RichEditToolbarGroupNames.Table];
}
}
See Also