Skip to main content

HeaderFooterType Enum

Lists header and footer types.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit


public enum HeaderFooterType


Name Description

A header/footer is displayed on the first page of the section.


A header/footer is displayed on odd pages of the section.


A header/footer is displayed on even pages of the section.


A header/footer is displayed on all pages of the section if the document does not distinguish between first, odd, and even pages. Actually, this is an alias for the Odd type.


Values listed by this enumeration are used in the following methods:

<DxRichEdit @ref="richEdit" />

@code {
    DxRichEdit richEdit;
    Document documentAPI;
    @* ... *@
    /* Surround the code that contains an asynchronous operation with a try-catch block to handle
    the OperationCanceledException. This exception is thrown when an asynchronous operation is canceled. */
        try {
            documentAPI = richEdit.DocumentAPI;
            @* ... *@
            Section section = await documentAPI.Sections.GetAsync(0);
            var footer = await section.GetFooterAsync(HeaderFooterType.Primary, true);
            await footer.AddTextAsync(DateTime.Now.Year.ToString());
            @* ... *@
        catch (OperationCanceledException e) {
            Console.WriteLine($"{nameof(OperationCanceledException)} thrown with message: {e.Message}");
See Also