RichEditBarItemNames.BandedColumns Property
Gets the Banded Columns item’s name.
Namespace: DevExpress.Blazor.RichEdit
Assembly: DevExpress.Blazor.RichEdit.v24.1.dll
NuGet Package: DevExpress.Blazor.RichEdit
Declaration
public static string BandedColumns { get; }
Property Value
Type | Description |
---|---|
String | The “BandedColumns” string. |
Remarks
Use this property to perform the following operations with the Banded Columns item:
- Access the item’s properties
- Add the item to a group
- Remove the item from a group
- Remove the item from the Table Options Menu
The Banded Columns item is a checkable button in the Table Options Menu. This button displays or removes special formatting from odd columns of the selected table.
The following code snippet removes the Banded Columns item from the Table Options Menu:
<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />
@code {
void onCustomizeRibbon(IRibbon ribbon) {
IBarItem tableOptionsMenu = ribbon.Tabs[RichEditRibbonTabNames.TableDesign].Groups[RichEditRibbonGroupNames.DesignTableStyleOptions].Items[RichEditBarItemNames.TableOptionsMenu];
if (tableOptionsMenu.Type == BarItemTypes.DropDown) {
IBarDropDown tableOptionsDropDown = (IBarDropDown)tableOptionsMenu;
tableOptionsDropDown.Items.Remove(RichEditBarItemNames.BandedColumns);
tableOptionsDropDown.Items.Remove(RichEditBarItemNames.BandedRows);
tableOptionsDropDown.Items.Remove(RichEditBarItemNames.FirstColumn);
tableOptionsDropDown.Items.Remove(RichEditBarItemNames.HeaderRow);
tableOptionsDropDown.Items.Remove(RichEditBarItemNames.LastColumn);
tableOptionsDropDown.Items.Remove(RichEditBarItemNames.TotalRow);
}
}
}
See Also