RichEditBarItemNames.AddSpacingBeforeParagraph Property
Gets the Add Spacing Before Paragraph item’s name.
Namespace: DevExpress.Blazor.RichEdit
Assembly: DevExpress.Blazor.RichEdit.v24.1.dll
NuGet Package: DevExpress.Blazor.RichEdit
Declaration
public static string AddSpacingBeforeParagraph { get; }
Property Value
Type | Description |
---|---|
String | The “AddSpacingBeforeParagraph” string. |
Remarks
Use this property to perform the following operations with the Add Spacing Before Paragraph item:
- Access the item’s properties
- Add the item to a group
- Remove the item from a group
- Remove the item from the Line Spacing Menu
The Add Spacing Before Paragraph item is a button in the Line Spacing Menu. This button allows users to add a space before the selected paragraphs.
The following code snippet removes the Add Spacing Before Paragraph item from the Line Spacing Menu:
<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />
@code {
void onCustomizeRibbon(IRibbon ribbon) {
IBarItem lineSpacingMenu = ribbon.Tabs[RichEditRibbonTabNames.Home].Groups[RichEditRibbonGroupNames.HomeParagraph].Items[RichEditBarItemNames.LineSpacingMenu];
if (lineSpacingMenu.Type == BarItemTypes.DropDown) {
IBarDropDown lineSpacingDropDown = (IBarDropDown)lineSpacingMenu;
lineSpacingDropDown.Items.Remove(RichEditBarItemNames.AddSpacingAfterParagraph);
lineSpacingDropDown.Items.Remove(RichEditBarItemNames.AddSpacingBeforeParagraph);
lineSpacingDropDown.Items.Remove(RichEditBarItemNames.LineSpacingDouble);
lineSpacingDropDown.Items.Remove(RichEditBarItemNames.LineSpacingSesquialteral);
lineSpacingDropDown.Items.Remove(RichEditBarItemNames.LineSpacingSingle);
lineSpacingDropDown.Items.Remove(RichEditBarItemNames.RemoveSpacingAfterParagraph);
lineSpacingDropDown.Items.Remove(RichEditBarItemNames.RemoveSpacingBeforeParagraph);
}
}
}
See Also