blazor-devexpress-dot-blazor-dot-office-dot-ibaritembase.md
Specifies the name for a bar element (tab, group, or item).
Namespace : DevExpress.Blazor.Office
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
string Name { get; set; }
| Type | Description |
|---|---|
| String |
The element name.
|
Use the Name property to specify a name for a tab, group, or item on the Rich Text Editor‘s ribbon or toolbar.
The following classes contain names of the built-in bar elements:
| Class | What Contains |
|---|---|
| RichEditRibbonTabNames | Ribbon tab names |
| RichEditRibbonGroupNames | Ribbon group names |
| RichEditToolbarGroupNames | Toolbar group names |
| RichEditBarItemNames | Ribbon and toolbar item names |
The following code snippet customizes the Rich Text Editor’s ribbon as follows:
<DxRichEdit CustomizeRibbon=OnCustomizeRibbon />
@code {
void OnCustomizeRibbon(IRibbon ribbon) {
// Clears the tab collection
ribbon.Tabs.Clear();
// Inserts a default tab
ribbon.Tabs.Add(RichEditRibbonTabNames.Home);
// Inserts a custom tab
IRibbonTab tableTab = ribbon.Tabs.AddCustomTab("Table");
tableTab.Name = "Table";
}
See Also