The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

Section.EndUpdateHeader(SubDocument) Method

Finalizes editing of the section's header.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

void EndUpdateHeader(
    SubDocument document
)
Sub EndUpdateHeader(
    document As SubDocument
)
void EndUpdateHeader(
    SubDocument document
)
Sub EndUpdateHeader(
    document As SubDocument
)
void EndUpdateHeader(
    SubDocument document
)
Sub EndUpdateHeader(
    document As SubDocument
)

Parameters

Name Type Description
document SubDocument

A SubDocument instance, representing the header open for editing.

Parameters

Name Type Description
document SubDocument

A SubDocument instance, representing the header open for editing.

Parameters

Name Type Description
document SubDocument

A SubDocument instance, representing the header open for editing.

Remarks

Use the Section.BeginUpdateHeader - Section.EndUpdateHeader method pair to edit header content.

Examples

Document document = server.Document;
document.AppendSection();
Section firstSection = document.Sections[0];
// Modify the header of the HeaderFooterType.First type.
SubDocument myHeader = firstSection.BeginUpdateHeader(HeaderFooterType.First);
DocumentRange range = myHeader.InsertText(myHeader.CreatePosition(0), " PAGE NUMBER ");
Field fld = myHeader.Fields.Create(range.End, "PAGE \\* ARABICDASH");
myHeader.Fields.Update();
firstSection.EndUpdateHeader(myHeader);
// Display the header of the HeaderFooterType.First type on the first page.
firstSection.DifferentFirstPage = true;
See Also