Back to Devexpress

RichEditBarItemNames.SentenceCase Property

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

latest2.8 KB
Original Source

RichEditBarItemNames.SentenceCase Property

Gets the Sentence Case item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string SentenceCase { get; }

Property Value

TypeDescription
String

The “SentenceCase” string.

|

Remarks

Use this property to perform the following operations with the Sentence Case item:

The Sentence Case item is a button in the Change Case Menu. This button allows users to change the case of the selected text to sentence case.

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

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