Back to Devexpress

RichEditBarItemNames.ChangeCaseMenu Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-67040166.md

latest3.4 KB
Original Source

RichEditBarItemNames.ChangeCaseMenu Property

Gets the Change Case Menu item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string ChangeCaseMenu { get; }

Property Value

TypeDescription
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 WordThe button allows users to capitalize selected words.LowercaseThe button allows users to change the case of the selected text to lowercase.Sentence CaseThe button allows users to change the case of the selected text to sentence case.Toggle CaseThe button allows users to change the case of the selected text to toggle case.UppercaseThe 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:

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

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace