Skip to main content
A newer version of this page is available. .

Section.BeginUpdateFooter() Method

Starts editing the primary footer for the current section.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v18.2.Core.dll

Declaration

SubDocument BeginUpdateFooter()

Returns

Type Description
SubDocument

A SubDocument instance that is the footer being edited.

Remarks

Use the Section.BeginUpdateFooter - Section.EndUpdateFooter method pair to edit primary (the HeaderFooterType.Primary type) footer content. If the document has no footer as yet, this method creates a footer of the HeaderFooterType.Primary type and opens it for editing.

You can use the Section.HasFooter property to determine whether the document already has a footer which is the same for all pages (a footer of the HeaderFooterType.Primary type).

Example

Dim firstSection As Section = document.Sections(0)
' Create an empty footer.
Dim newFooter As SubDocument = firstSection.BeginUpdateFooter()
firstSection.EndUpdateFooter(newFooter)
' Check whether the document already has a footer (the same footer for all pages).
If firstSection.HasFooter(HeaderFooterType.Primary) Then
    Dim footerDocument As SubDocument = firstSection.BeginUpdateFooter()
    document.ChangeActiveDocument(footerDocument)
    document.CaretPosition = footerDocument.CreatePosition(0)
    firstSection.EndUpdateFooter(footerDocument)
End If

The following code snippets (auto-collected from DevExpress Examples) contain references to the BeginUpdateFooter() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also