Skip to main content

SectionProperties.FooterOffset Property

Specifies the footer offset from the bottom of the page.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public int FooterOffset { get; set; }

Property Value

Type Description
Int32

The offset, in twips.

Remarks

The FooterOffset property specifies the footer offset from the bottom of the page in a section. Use the Margins property to specify the footer’s left, right, and top margins.

Section Margins

Call a section’s ChangePropertiesAsync(Action<SectionProperties>, CancellationToken) method to change the footer offset.

<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;
            var sections = await documentAPI.Sections.GetAllAsync();
            foreach (Section s in sections)
                await s.ChangePropertiesAsync(properties => {
                    if (s.FooterOffset != 850)
                        properties.FooterOffset = 850;
                });
        }
        catch (OperationCanceledException e) {
            Console.WriteLine($"{nameof(OperationCanceledException)} thrown with message: {e.Message}");
        }
}

Use methods of the UnitConverter class to convert centimeters, inches, pixels, or points to twips.

See Also