blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-67040166.md
Gets the Change Case Menu item’s name.
Namespace : DevExpress.Blazor.RichEdit
Assembly : DevExpress.Blazor.RichEdit.v25.2.dll
NuGet Package : DevExpress.Blazor.RichEdit
public static string ChangeCaseMenu { get; }
| Type | Description |
|---|---|
| String |
The “ChangeCaseMenu” string.
|
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:
<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