Skip to main content
A newer version of this page is available. .
All docs
V21.2
.NET Framework 4.5.2+

Document.UpdateAllFields() Method

Updates all fields in the document.

Namespace: DevExpress.XtraRichEdit.API.Native

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

NuGet Package: DevExpress.RichEdit.Core

Declaration

void UpdateAllFields()

Remarks

Use the Field.Update method to update a field. The FieldCollection.Update method allows you to update all fields in specific parts of a document (main body, text box, header, footer, comment, footnote, and endnote).

The code sample below updates all fields in the document.

using DevExpress.XtraRichEdit;
using DevExpress.XtraRichEdit.API.Native;
//...

using (RichEditDocumentServer wordProcessor = new RichEditDocumentServer())
{
    // Access a document.
    Document document = wordProcessor.Document;
    //...
    // Update all fields in the document.
    document.UpdateAllFields();
}
See Also