Skip to main content
All docs
V25.1
  • RichEditBarItemNames.TableCellAlignTopCenter Property

    Gets the Table Cell Align Top Center item’s name.

    Namespace: DevExpress.Blazor.RichEdit

    Assembly: DevExpress.Blazor.RichEdit.v25.1.dll

    NuGet Package: DevExpress.Blazor.RichEdit

    Declaration

    public static string TableCellAlignTopCenter { get; }

    Property Value

    Type Description
    String

    The “TableCellAlignTopCenter” string.

    Remarks

    Use this property to perform the following operations with the Table Cell Align Top Center item:

    The Table Cell Align Top Center item is a button in the Cell Alignment Menu. The button centers the text in the selected cells and aligns the text to the top of the cell.

    The following code snippet removes the Table Cell Align Top Center item from the Cell Alignment Menu:

    <DxRichEdit CustomizeRibbon="onCustomizeRibbon" />
    
    @code {
        void onCustomizeRibbon(IRibbon ribbon) {
            IBarItem cellAlignmentMenu = ribbon.Tabs[RichEditRibbonTabNames.TableLayout]
            .Groups[RichEditRibbonGroupNames.LayoutAlignment]
            .Items[RichEditBarItemNames.CellAlignmentMenu];
            if (cellAlignmentMenu.Type == BarItemTypes.DropDown) {
                IBarDropDown cellAlignmentDropDown = (IBarDropDown)cellAlignmentMenu;
                cellAlignmentDropDown.Items.Remove(RichEditBarItemNames.TableCellAlignBottomCenter);
                cellAlignmentDropDown.Items.Remove(RichEditBarItemNames.TableCellAlignBottomLeft);
                cellAlignmentDropDown.Items.Remove(RichEditBarItemNames.TableCellAlignBottomRight);
                cellAlignmentDropDown.Items.Remove(RichEditBarItemNames.TableCellAlignMiddleCenter);
                cellAlignmentDropDown.Items.Remove(RichEditBarItemNames.TableCellAlignMiddleLeft);
                cellAlignmentDropDown.Items.Remove(RichEditBarItemNames.TableCellAlignMiddleRight);
                cellAlignmentDropDown.Items.Remove(RichEditBarItemNames.TableCellAlignTopCenter);
                cellAlignmentDropDown.Items.Remove(RichEditBarItemNames.TableCellAlignTopLeft);
                cellAlignmentDropDown.Items.Remove(RichEditBarItemNames.TableCellAlignTopRight);
            }
        }
    }
    
    See Also