# WordFieldUpdateOptionsFluent

The fluent methods of WordFieldUpdateOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Modifiers**

static

The fluent methods of [WordFieldUpdateOptions](/api/word/officeimo-word-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

Filter members 

Show inherited

## Methods

`public static WordFieldUpdateOptions CurrentDateTime(WordFieldUpdateOptions wordFieldUpdateOptions, DateTime? value)` [#](#method-currentdatetime-officeimo-word-wordfieldupdateoptions-nullable-system-datetime)

Sets [WordFieldUpdateOptions.CurrentDateTime](/api/word/officeimo-word-wordfieldupdateoptions/): 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 required**

The instance.

**value System.DateTime? required**

The value.

Returns

`WordFieldUpdateOptions` The same instance.

Examples

```csharp
// 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)` [#](#method-datetimefieldsonly-officeimo-word-wordfieldupdateoptions-boolean)

Sets [WordFieldUpdateOptions.DateTimeFieldsOnly](/api/word/officeimo-word-wordfieldupdateoptions/): When true, refreshes only DATE and TIME fields and leaves all other field results unchanged.

Parameters

**wordFieldUpdateOptions OfficeIMO.Word.WordFieldUpdateOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`WordFieldUpdateOptions` The same instance.

Examples

```csharp
// 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)` [#](#method-tablesofcontentsonly-officeimo-word-wordfieldupdateoptions-boolean)

Sets [WordFieldUpdateOptions.TablesOfContentsOnly](/api/word/officeimo-word-wordfieldupdateoptions/): When true, every table of contents is regenerated as with [WordFieldUpdateOptions.UpdateTablesOfContents](/api/word/officeimo-word-wordfieldupdateoptions/), 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 required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`WordFieldUpdateOptions` The same instance.

Examples

```csharp
// 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)` [#](#method-updatetablesofcontents-officeimo-word-wordfieldupdateoptions-boolean)

Sets [WordFieldUpdateOptions.UpdateTablesOfContents](/api/word/officeimo-word-wordfieldupdateoptions/): 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 required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`WordFieldUpdateOptions` The same instance.

Examples

```csharp
// 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)` [#](#method-uselayoutpagination-officeimo-word-wordfieldupdateoptions-boolean)

Sets [WordFieldUpdateOptions.UseLayoutPagination](/api/word/officeimo-word-wordfieldupdateoptions/): 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 required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`WordFieldUpdateOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Word.WordFieldUpdateOptions { UseLayoutPagination = value };    wordFieldUpdateOptions.UseLayoutPagination(value);
```

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:A3FEF424DFA9D81FA723EE7B7F4ED18C684CF23E10AA6EF9AA939CD439E953D7 -->
