RichEditBarItemNames.ParagraphAlignmentJustify Property
Gets the Paragraph Alignment Justify item’s name.
Namespace: DevExpress.Blazor.RichEdit
Assembly: DevExpress.Blazor.RichEdit.v24.2.dll
NuGet Package: DevExpress.Blazor.RichEdit
Declaration
public static string ParagraphAlignmentJustify { get; }
Property Value
Type | Description |
---|---|
String | The “ParagraphAlignmentJustify” string. |
Remarks
Use this property to perform the following operations with the Paragraph Alignment Justify item:
- Access the item’s properties
- Add the item to a group
- Remove the item from a group
- Remove the item from the Paragraph Alignment Menu
The Paragraph Alignment Justify item is a button in the Paragraph Alignment Menu. This button allows users to align the selected paragraphs with the left and right margins.
The following code snippet removes the Paragraph Alignment Justify item from the Paragraph Alignment Menu:
<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />
@code {
void onCustomizeRibbon(IRibbon ribbon) {
IBarItem paragraphAlignmentMenu = ribbon.Tabs[RichEditRibbonTabNames.Home].Groups[RichEditRibbonGroupNames.HomeParagraph].Items[RichEditBarItemNames.ParagraphAlignmentMenu];
if (paragraphAlignmentMenu.Type == BarItemTypes.DropDown) {
IBarDropDown paragraphAlignmentDropDown = (IBarDropDown)paragraphAlignmentMenu;
paragraphAlignmentDropDown.Items.Remove(RichEditBarItemNames.ParagraphAlignmentCenter);
paragraphAlignmentDropDown.Items.Remove(RichEditBarItemNames.ParagraphAlignmentJustify);
paragraphAlignmentDropDown.Items.Remove(RichEditBarItemNames.ParagraphAlignmentLeft);
paragraphAlignmentDropDown.Items.Remove(RichEditBarItemNames.ParagraphAlignmentRight);
}
}
}
See Also