WordFieldUpdateOptionsFluent
OfficeIMO.Word
The fluent methods of WordFieldUpdateOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.
Inheritance
- object
- WordFieldUpdateOptionsFluent
Methods
public static WordFieldUpdateOptions CurrentDateTime(WordFieldUpdateOptions wordFieldUpdateOptions, DateTime? value) #Sets WordFieldUpdateOptions.CurrentDateTime: Gets or sets the date and time used for DATE and TIME field refresh. When unset, OfficeIMO uses the current local date and time.
Parameters
- wordFieldUpdateOptions OfficeIMO.Word.WordFieldUpdateOptions
- The instance.
- value System.DateTime?
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Word.WordFieldUpdateOptions { CurrentDateTime = value }; wordFieldUpdateOptions.CurrentDateTime(value);public static WordFieldUpdateOptions DateTimeFieldsOnly(WordFieldUpdateOptions wordFieldUpdateOptions, bool value = true) #Sets WordFieldUpdateOptions.DateTimeFieldsOnly: When true, refreshes only DATE and TIME fields and leaves all other field results unchanged.
Parameters
- wordFieldUpdateOptions OfficeIMO.Word.WordFieldUpdateOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Word.WordFieldUpdateOptions { DateTimeFieldsOnly = value }; wordFieldUpdateOptions.DateTimeFieldsOnly(value);public static WordFieldUpdateOptions TablesOfContentsOnly(WordFieldUpdateOptions wordFieldUpdateOptions, bool value = true) #Sets WordFieldUpdateOptions.TablesOfContentsOnly: 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.
Parameters
- wordFieldUpdateOptions OfficeIMO.Word.WordFieldUpdateOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Word.WordFieldUpdateOptions { TablesOfContentsOnly = value }; wordFieldUpdateOptions.TablesOfContentsOnly(value);public static WordFieldUpdateOptions UpdateTablesOfContents(WordFieldUpdateOptions wordFieldUpdateOptions, bool value = true) #Sets WordFieldUpdateOptions.UpdateTablesOfContents: 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.
Parameters
- wordFieldUpdateOptions OfficeIMO.Word.WordFieldUpdateOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Word.WordFieldUpdateOptions { UpdateTablesOfContents = value }; wordFieldUpdateOptions.UpdateTablesOfContents(value);public static WordFieldUpdateOptions UseLayoutPagination(WordFieldUpdateOptions wordFieldUpdateOptions, bool value = true) #Sets WordFieldUpdateOptions.UseLayoutPagination: 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.
Parameters
- wordFieldUpdateOptions OfficeIMO.Word.WordFieldUpdateOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Word.WordFieldUpdateOptions { UseLayoutPagination = value }; wordFieldUpdateOptions.UseLayoutPagination(value);