Skip to main content

RichEditBarItemNames.ChangeCaseMenu Property

Gets the Change Case Menu item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public static string ChangeCaseMenu { get; }

Property Value

Type Description
String

The “ChangeCaseMenu” string.

Remarks

Use this property to perform the following operations:

The Change Case Menu item is a drop-down menu in the Font group. This menu contains the following items:

Capitalize Each Word
The button allows users to capitalize selected words.
Lowercase
The button allows users to change the case of the selected text to lowercase.
Sentence Case
The button allows users to change the case of the selected text to sentence case.
Toggle Case
The button allows users to change the case of the selected text to toggle case.
Uppercase
The button allows users to change the case of the selected text to uppercase.

The following code snippet removes items from the Change Case Menu item:

<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        IBarItem changeCaseMenu = ribbon.Tabs[RichEditRibbonTabNames.Home].Groups[RichEditRibbonGroupNames.HomeFont].Items[RichEditBarItemNames.ChangeCaseMenu];
        if (changeCaseMenu.Type == BarItemTypes.DropDown) {
            IBarDropDown changeCaseDropDown = (IBarDropDown)changeCaseMenu;
            changeCaseDropDown.Items.Remove(RichEditBarItemNames.CapitalizeEachWord);
            changeCaseDropDown.Items.Remove(RichEditBarItemNames.Lowercase);
            changeCaseDropDown.Items.Remove(RichEditBarItemNames.SentenceCase);
            changeCaseDropDown.Items.Remove(RichEditBarItemNames.ToggleCase);
            changeCaseDropDown.Items.Remove(RichEditBarItemNames.Uppercase);
        }
    }
}
See Also