Back to Devexpress

RichEditBarItemNames.TableCellAlignMiddleLeft Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-8ef51ac0.md

latest3.4 KB
Original Source

RichEditBarItemNames.TableCellAlignMiddleLeft Property

Gets the Table Cell Align Middle Left item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string TableCellAlignMiddleLeft { get; }

Property Value

TypeDescription
String

The “TableCellAlignMiddleLeft” string.

|

Remarks

Use this property to perform the following operations with the Table Cell Align Middle Left item:

The Table Cell Align Middle Left item is a button in the Cell Alignment Menu. The button centers the text in the selected cells vertically and aligns the text to the left side of the cell.

The following code snippet removes the Table Cell Align Middle Left item from the Cell Alignment Menu:

razor
<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

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace