UpdateFieldsOnOpen class

Office 2013 and later

Automatically Recalculate Fields on Open. When the object is serialized out as xml, its qualified name is w:updateFields.

Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class UpdateFieldsOnOpen : OnOffType

[ISO/IEC 29500-1 1st Edition]

updateFields (Automatically Recalculate Fields on Open)

This element specifies whether the fields contained in this document should automatically have their field result recalculated from the field codes when this document is opened by an application which supports field calculations. [Note: Some fields are always recalculated (e.g. the page numbering), therefore this element only affects fields which are typically not automatically recalculated on opening the document. Also note that this setting must not supersede any document protection (§ or write protection (§ settings. end note]

If this element is omitted, then fields should not automatically be recalculated on opening this document.

[Example: Consider a WordprocessingML document that specifies that applications should attempt to automatically recalculate fields from their field codes upon opening this document. This requirement would be specified using the following WordprocessingML in the document settings part:

<w:updateFields w:val="true"/> 

The updateFields element's val attribute has a value of true specifying that all fields should automatically be recalculated when opening this document. end example]

Parent Elements

settings (§

This element’s content model is defined by the common boolean property definition in §17.17.4.

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.