# WordSettingsFluent

The fluent methods of WordSettings, 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 [WordSettings](/api/word/officeimo-word-wordsettings/), 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
- WordSettingsFluent

Filter members 

Show inherited

## Methods

BackgroundColor``1 2 overloads

`public static TSelf BackgroundColor<TSelf>(TSelf wordSettings, OfficeColor backgroundColor)` [#](#method-backgroundcolor-officeimo-officecolor)

Sets the document's background color.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**backgroundColor OfficeIMO.OfficeColor required**

Color value.

Returns

`TSelf` The same instance.

`public static TSelf BackgroundColor<TSelf>(TSelf wordSettings, OfficeColor? value)` [#](#method-backgroundcolor-nullable-officeimo-officecolor)

Sets [WordSettings.BackgroundColor](/api/word/officeimo-word-wordsettings/): Gets or sets the default background color. Automatic color reads as null.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property            // C# fluent
wordSettings.BackgroundColor = value;    wordSettings.BackgroundColor(value);
```

`public static TSelf CharacterSpacingControl<TSelf>(TSelf wordSettings, WordCharacterSpacing? value)` [#](#method-characterspacingcontrol-nullable-officeimo-word-wordcharacterspacing)

Sets [WordSettings.CharacterSpacingControl](/api/word/officeimo-word-wordsettings/): Gets or sets character spacing control.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value OfficeIMO.Word.WordCharacterSpacing? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                    // C# fluent
wordSettings.CharacterSpacingControl = value;    wordSettings.CharacterSpacingControl(value);
```

`public static TSelf DecimalSymbol<TSelf>(TSelf wordSettings, string? value)` [#](#method-decimalsymbol-string)

Sets [WordSettings.DecimalSymbol](/api/word/officeimo-word-wordsettings/): Gets or sets the document's decimal separator, including decimal tab alignment.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property          // C# fluent
wordSettings.DecimalSymbol = value;    wordSettings.DecimalSymbol(value);
```

`public static TSelf DefaultTabStop<TSelf>(TSelf wordSettings, int value)` [#](#method-defaulttabstop-int32)

Sets [WordSettings.DefaultTabStop](/api/word/officeimo-word-wordsettings/): Gets or sets the default tab stop, in twentieths of a point.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value int required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property           // C# fluent
wordSettings.DefaultTabStop = value;    wordSettings.DefaultTabStop(value);
```

`public static TSelf FinalDocument<TSelf>(TSelf wordSettings, bool value = true)` [#](#method-finaldocument-boolean)

Sets [WordSettings.FinalDocument](/api/word/officeimo-word-wordsettings/): Gets or sets whether the document is marked as final. Word notifies users that a finalized document should be treated as read-only.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property          // C# fluent
wordSettings.FinalDocument = value;    wordSettings.FinalDocument(value);
```

`public static TSelf FontFamilyComplexScript<TSelf>(TSelf wordSettings, string? value)` [#](#method-fontfamilycomplexscript-string)

Sets [WordSettings.FontFamilyComplexScript](/api/word/officeimo-word-wordsettings/): Gets or sets the default complex-script font family.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                    // C# fluent
wordSettings.FontFamilyComplexScript = value;    wordSettings.FontFamilyComplexScript(value);
```

`public static TSelf FontFamilyEastAsia<TSelf>(TSelf wordSettings, string? value)` [#](#method-fontfamilyeastasia-string)

Sets [WordSettings.FontFamilyEastAsia](/api/word/officeimo-word-wordsettings/): Gets or sets the default East Asian font family.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property               // C# fluent
wordSettings.FontFamilyEastAsia = value;    wordSettings.FontFamilyEastAsia(value);
```

`public static TSelf FontFamilyHighAnsi<TSelf>(TSelf wordSettings, string? value)` [#](#method-fontfamilyhighansi-string)

Sets [WordSettings.FontFamilyHighAnsi](/api/word/officeimo-word-wordsettings/): Gets or sets the default High ANSI font family.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property               // C# fluent
wordSettings.FontFamilyHighAnsi = value;    wordSettings.FontFamilyHighAnsi(value);
```

`public static TSelf FontFamily<TSelf>(TSelf wordSettings, string? value)` [#](#method-fontfamily-string)

Sets [WordSettings.FontFamily](/api/word/officeimo-word-wordsettings/): Gets the default ASCII font family or sets all four font families.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
wordSettings.FontFamily = value;    wordSettings.FontFamily(value);
```

`public static TSelf FontSizeComplexScript<TSelf>(TSelf wordSettings, OfficeLength? value)` [#](#method-fontsizecomplexscript-nullable-officeimo-officelength)

Sets [WordSettings.FontSizeComplexScript](/api/word/officeimo-word-wordsettings/): Gets or sets the default font size for complex-script text.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                  // C# fluent
wordSettings.FontSizeComplexScript = value;    wordSettings.FontSizeComplexScript(value);
```

`public static TSelf FontSize<TSelf>(TSelf wordSettings, OfficeLength? value)` [#](#method-fontsize-nullable-officeimo-officelength)

Sets [WordSettings.FontSize](/api/word/officeimo-word-wordsettings/): Gets or sets the document's default font size.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property     // C# fluent
wordSettings.FontSize = value;    wordSettings.FontSize(value);
```

`public static TSelf GutterAtTop<TSelf>(TSelf wordSettings, bool value = true)` [#](#method-gutterattop-boolean)

Sets [WordSettings.GutterAtTop](/api/word/officeimo-word-wordsettings/): Gets or sets whether the document gutter is placed at the top of each page.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property        // C# fluent
wordSettings.GutterAtTop = value;    wordSettings.GutterAtTop(value);
```

`public static TSelf Language<TSelf>(TSelf wordSettings, string? value)` [#](#method-language-string)

Sets [WordSettings.Language](/api/word/officeimo-word-wordsettings/): Gets or sets the document's default language.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property     // C# fluent
wordSettings.Language = value;    wordSettings.Language(value);
```

`public static TSelf MirrorMargins<TSelf>(TSelf wordSettings, bool value = true)` [#](#method-mirrormargins-boolean)

Sets [WordSettings.MirrorMargins](/api/word/officeimo-word-wordsettings/): Gets or sets whether odd and even pages use mirrored inside/outside margins.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property          // C# fluent
wordSettings.MirrorMargins = value;    wordSettings.MirrorMargins(value);
```

`public static TSelf ProtectionPassword<TSelf>(TSelf wordSettings, string value)` [#](#method-protectionpassword-string)

Sets [WordSettings.ProtectionPassword](/api/word/officeimo-word-wordsettings/): Sets the password for the document's editing restrictions.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value string required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property               // C# fluent
wordSettings.ProtectionPassword = value;    wordSettings.ProtectionPassword(value);
```

ProtectionType``1 2 overloads

`public static TSelf ProtectionType<TSelf>(TSelf wordSettings, WordDocumentProtectionType protectionType)` [#](#method-protectiontype-officeimo-word-worddocumentprotectiontype)

Sets document protection using an OfficeIMO-owned value.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**protectionType OfficeIMO.Word.WordDocumentProtectionType required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf ProtectionType<TSelf>(TSelf wordSettings, WordDocumentProtectionType? value)` [#](#method-protectiontype-nullable-officeimo-word-worddocumentprotectiontype)

Sets [WordSettings.ProtectionType](/api/word/officeimo-word-wordsettings/): Gets or sets the editing restrictions for the document.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value OfficeIMO.Word.WordDocumentProtectionType? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property           // C# fluent
wordSettings.ProtectionType = value;    wordSettings.ProtectionType(value);
```

`public static TSelf ReadOnlyRecommended<TSelf>(TSelf wordSettings, bool? value = true)` [#](#method-readonlyrecommended-nullable-system-boolean)

Sets [WordSettings.ReadOnlyRecommended](/api/word/officeimo-word-wordsettings/): Gets or sets whether Word recommends opening the document as read-only.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                // C# fluent
wordSettings.ReadOnlyRecommended = value;    wordSettings.ReadOnlyRecommended(value);
```

`public static TSelf TrackFormatting<TSelf>(TSelf wordSettings, bool value = true)` [#](#method-trackformatting-boolean)

Sets [WordSettings.TrackFormatting](/api/word/officeimo-word-wordsettings/): Gets or sets whether Word tracks formatting changes.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property            // C# fluent
wordSettings.TrackFormatting = value;    wordSettings.TrackFormatting(value);
```

`public static TSelf TrackMoves<TSelf>(TSelf wordSettings, bool value = true)` [#](#method-trackmoves-boolean)

Sets [WordSettings.TrackMoves](/api/word/officeimo-word-wordsettings/): Gets or sets whether Word tracks move operations.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
wordSettings.TrackMoves = value;    wordSettings.TrackMoves(value);
```

`public static TSelf TrackRevisions<TSelf>(TSelf wordSettings, bool value = true)` [#](#method-trackrevisions-boolean)

Sets [WordSettings.TrackRevisions](/api/word/officeimo-word-wordsettings/): Gets or sets whether Word tracks revisions.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property           // C# fluent
wordSettings.TrackRevisions = value;    wordSettings.TrackRevisions(value);
```

`public static TSelf UpdateFieldsOnOpen<TSelf>(TSelf wordSettings, bool value = true)` [#](#method-updatefieldsonopen-boolean)

Sets [WordSettings.UpdateFieldsOnOpen](/api/word/officeimo-word-wordsettings/): Tells Word to update fields when opening the document. Without this option the document fields require a manual refresh.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property               // C# fluent
wordSettings.UpdateFieldsOnOpen = value;    wordSettings.UpdateFieldsOnOpen(value);
```

`public static TSelf ZoomPercentage<TSelf>(TSelf wordSettings, int? value)` [#](#method-zoompercentage-nullable-system-int32)

Sets [WordSettings.ZoomPercentage](/api/word/officeimo-word-wordsettings/): Gets or sets the zoom percentage.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value int? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property           // C# fluent
wordSettings.ZoomPercentage = value;    wordSettings.ZoomPercentage(value);
```

`public static TSelf ZoomPreset<TSelf>(TSelf wordSettings, WordZoomPreset? value)` [#](#method-zoompreset-nullable-officeimo-word-wordzoompreset)

Sets [WordSettings.ZoomPreset](/api/word/officeimo-word-wordsettings/): Gets or sets the zoom preset.

Type Parameters

**TSelf**

Parameters

**wordSettings TSelf required**

The instance.

**value OfficeIMO.Word.WordZoomPreset? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
wordSettings.ZoomPreset = value;    wordSettings.ZoomPreset(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:5CA16337AC553C5831E49E1AE9EBF9690D9D909E07342AA1386812F7963EC4BD -->
