WordFieldUpdateOptions
OfficeIMO.Word
Controls deterministic behavior used while refreshing supported Word fields.
Inheritance
- object
- WordFieldUpdateOptions
Usage
Explore 3 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Property WordFieldUpdateOptions.Default
Accepted by parameters 2
Constructors
public WordFieldUpdateOptions() #Inherited Methods
Properties
public static WordFieldUpdateOptions Default { get; } #Gets an options instance that uses the current local date and time for DATE and TIME fields.
public DateTime? CurrentDateTime { get; set; } #Gets or sets the date and time used for DATE and TIME field refresh. When unset, OfficeIMO uses the current local date and time.
public bool DateTimeFieldsOnly { get; set; } #When true, refreshes only DATE and TIME fields and leaves all other field results unchanged.
public bool UpdateTablesOfContents { get; set; } #When true, every table of contents is regenerated from the document headings as a complete TOC field result: one hyperlinked entry per heading with a PAGEREF page number. The entries are final, so the table is no longer flagged for Word to rebuild on open.
public bool TablesOfContentsOnly { get; set; } #When true, every table of contents is regenerated as with WordFieldUpdateOptions.UpdateTablesOfContents, and only the fields inside the regenerated tables, their PAGEREF page numbers, are refreshed. Every other field keeps its result.
public bool UseLayoutPagination { get; set; } #When true, PAGEREF (including table-of-contents page numbers), NUMPAGES and body PAGE fields use page numbers from OfficeIMO's own page layout, the engine behind PDF conversion, instead of counting explicit page and section breaks. Header and footer PAGE fields and SECTIONPAGES do not. Fields whose text can change the layout are updated first; the page fields then take their numbers from one layout of the result, with no second pass, as in Word's own update. This lays out a copy of the document, so it costs about as much as a PDF conversion.