Skip to main content

RichEditBarItemNames.CapitalizeEachWord Property

Gets the Capitalize Each Word item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public static string CapitalizeEachWord { get; }

Property Value

Type Description
String

The “CapitalizeEachWord” string.

Remarks

Use this property to perform the following operations with the Capitalize Each Word item:

The Capitalize Each Word item is a button in the Change Case Menu. This button allows users to capitalize selected words.

The following code snippet removes the Capitalize Each Word item from the Change Case Menu:

<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