Skip to main content

RichEditBarItemNames.DifferentFirstPage Property

Gets the Different First Page item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public static string DifferentFirstPage { get; }

Property Value

Type Description
String

The “DifferentFirstPage” string.

Remarks

Use this property to perform the following operations:

The Different First Page item is a checkable button in the Options group. The button allows users to create a unique header and footer for a section‘s first page. The Rich Text Editor disables this button when no header or footer is selected.

The following code snippet removes the Different First Page item from the ribbon:

<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        string tabName = RichEditRibbonTabNames.HeaderAndFooter;
        string groupName = RichEditRibbonGroupNames.HeaderAndFooterOptions;
        string itemName = RichEditBarItemNames.DifferentFirstPage;
        ribbon.Tabs[tabName].Groups[groupName].Items.Remove(itemName);
    }
}
See Also