Back to Devexpress

RichEditBarItemNames.DifferentFirstPage Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-81a3435f.md

latest2.3 KB
Original Source

RichEditBarItemNames.DifferentFirstPage Property

Gets the Different First Page item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string DifferentFirstPage { get; }

Property Value

TypeDescription
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:

razor
<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

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace