Skip to main content
All docs
V25.1
  • RichEditBarItemNames.LinkToPreviousHeaderFooter Property

    Gets the Link to Previous Header Footer item’s name.

    Namespace: DevExpress.Blazor.RichEdit

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

    NuGet Package: DevExpress.Blazor.RichEdit

    Declaration

    public static string LinkToPreviousHeaderFooter { get; }

    Property Value

    Type Description
    String

    The “LinkToPreviousHeaderFooter” string.

    Remarks

    Use this property to perform the following operations:

    • Access the Link to Previous Header Footer item’s properties
    • Add/remove the item to/from a group.

    The Link to Previous Header Footer item is a checkable button in the Navigation group. The button links the selected header or footer to the corresponding header or footer of the previous section to display the same content. The Rich Text Editor disables this button when an open document contains only one section.

    Note

    Headers and footers of different types can not be linked to each other. For instance, you cannot link a first page header to another header or link an odd page footer to an even page footer.

    The following code snippet removes the Link to Previous Header Footer item from the ribbon:

    <DxRichEdit CustomizeRibbon="onCustomizeRibbon" />
    
    @code {
        void onCustomizeRibbon(IRibbon ribbon) {
            string tabName = RichEditRibbonTabNames.HeaderAndFooter;
            string groupName = RichEditRibbonGroupNames.HeaderAndFooterNavigation;
            string itemName = RichEditBarItemNames.LinkToPreviousHeaderFooter;
            ribbon.Tabs[tabName].Groups[groupName].Items.Remove(itemName);
        }
    }
    
    See Also