# WordLoadOptionsFluent

The fluent methods of WordLoadOptions, 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 [WordLoadOptions](/api/word/officeimo-word-wordloadoptions/), 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
- WordLoadOptionsFluent

Filter members 

Show inherited

## Methods

`public static WordLoadOptions AccessMode(WordLoadOptions wordLoadOptions, DocumentAccessMode value)` [#](#method-accessmode-officeimo-word-wordloadoptions-officeimo-documentaccessmode)

Sets DocumentLoadOptions.AccessMode.

Parameters

**wordLoadOptions OfficeIMO.Word.WordLoadOptions required**

The instance.

**value OfficeIMO.DocumentAccessMode required**

The value.

Returns

`WordLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { AccessMode = value };    wordLoadOptions.AccessMode(value);
```

`public static WordLoadOptions AllowLegacyProjection(WordLoadOptions wordLoadOptions, bool value = true)` [#](#method-allowlegacyprojection-officeimo-word-wordloadoptions-boolean)

Sets [WordLoadOptions.AllowLegacyProjection](/api/word/officeimo-word-wordloadoptions/): Allows native binary DOC projection into an Open XML model. Default: true. False rejects that source family before picture projection, including mislabeled input.

Parameters

**wordLoadOptions OfficeIMO.Word.WordLoadOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`WordLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                    // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { AllowLegacyProjection = value };    wordLoadOptions.AllowLegacyProjection(value);
```

`public static WordLoadOptions CaptureSourcePackageSecurity(WordLoadOptions wordLoadOptions, bool value = true)` [#](#method-capturesourcepackagesecurity-officeimo-word-wordloadoptions-boolean)

Sets DocumentLoadOptions.CaptureSourcePackageSecurity.

Parameters

**wordLoadOptions OfficeIMO.Word.WordLoadOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`WordLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                           // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { CaptureSourcePackageSecurity = value };    wordLoadOptions.CaptureSourcePackageSecurity(value);
```

`public static WordLoadOptions FailOnLoss(WordLoadOptions wordLoadOptions, bool value = true)` [#](#method-failonloss-officeimo-word-wordloadoptions-boolean)

Sets [WordLoadOptions.FailOnLoss](/api/word/officeimo-word-wordloadoptions/): Rejects reported loss when a native Word source is projected into the editable model.

Parameters

**wordLoadOptions OfficeIMO.Word.WordLoadOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`WordLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { FailOnLoss = value };    wordLoadOptions.FailOnLoss(value);
```

`public static WordLoadOptions MaxDataPropertyChainLength(WordLoadOptions wordLoadOptions, int value)` [#](#method-maxdatapropertychainlength-officeimo-word-wordloadoptions-int32)

Sets [WordLoadOptions.MaxDataPropertyChainLength](/api/word/officeimo-word-wordloadoptions/): Maximum legacy Data records followed by one paragraph-property chain.

Parameters

**wordLoadOptions OfficeIMO.Word.WordLoadOptions required**

The instance.

**value int required**

The value.

Returns

`WordLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { MaxDataPropertyChainLength = value };    wordLoadOptions.MaxDataPropertyChainLength(value);
```

`public static WordLoadOptions MaxDecodedCharacters(WordLoadOptions wordLoadOptions, int value)` [#](#method-maxdecodedcharacters-officeimo-word-wordloadoptions-int32)

Sets [WordLoadOptions.MaxDecodedCharacters](/api/word/officeimo-word-wordloadoptions/): Maximum legacy text characters decoded from the piece table.

Parameters

**wordLoadOptions OfficeIMO.Word.WordLoadOptions required**

The instance.

**value int required**

The value.

Returns

`WordLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { MaxDecodedCharacters = value };    wordLoadOptions.MaxDecodedCharacters(value);
```

`public static WordLoadOptions MaxDecodedImageBytes(WordLoadOptions wordLoadOptions, int value)` [#](#method-maxdecodedimagebytes-officeimo-word-wordloadoptions-int32)

Sets [WordLoadOptions.MaxDecodedImageBytes](/api/word/officeimo-word-wordloadoptions/): Maximum aggregate decoded legacy image bytes.

Parameters

**wordLoadOptions OfficeIMO.Word.WordLoadOptions required**

The instance.

**value int required**

The value.

Returns

`WordLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { MaxDecodedImageBytes = value };    wordLoadOptions.MaxDecodedImageBytes(value);
```

`public static WordLoadOptions MaxInputBytes(WordLoadOptions wordLoadOptions, long value)` [#](#method-maxinputbytes-officeimo-word-wordloadoptions-int64)

Sets [WordLoadOptions.MaxInputBytes](/api/word/officeimo-word-wordloadoptions/): Maximum number of source bytes accepted before Word package parsing begins.

Parameters

**wordLoadOptions OfficeIMO.Word.WordLoadOptions required**

The instance.

**value long required**

The value.

Returns

`WordLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { MaxInputBytes = value };    wordLoadOptions.MaxInputBytes(value);
```

`public static WordLoadOptions MaxLegacyInputBytes(WordLoadOptions wordLoadOptions, int value)` [#](#method-maxlegacyinputbytes-officeimo-word-wordloadoptions-int32)

Sets [WordLoadOptions.MaxLegacyInputBytes](/api/word/officeimo-word-wordloadoptions/): Maximum binary DOC stream size accepted by the native decoder.

Parameters

**wordLoadOptions OfficeIMO.Word.WordLoadOptions required**

The instance.

**value int required**

The value.

Returns

`WordLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { MaxLegacyInputBytes = value };    wordLoadOptions.MaxLegacyInputBytes(value);
```

`public static WordLoadOptions MaxParagraphPropertyWorkBytes(WordLoadOptions wordLoadOptions, int value)` [#](#method-maxparagraphpropertyworkbytes-officeimo-word-wordloadoptions-int32)

Sets [WordLoadOptions.MaxParagraphPropertyWorkBytes](/api/word/officeimo-word-wordloadoptions/): Maximum legacy paragraph-property traversal work, in bytes.

Parameters

**wordLoadOptions OfficeIMO.Word.WordLoadOptions required**

The instance.

**value int required**

The value.

Returns

`WordLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                            // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { MaxParagraphPropertyWorkBytes = value };    wordLoadOptions.MaxParagraphPropertyWorkBytes(value);
```

OpenSettings 2 overloads

`public static WordLoadOptions OpenSettings(WordLoadOptions wordLoadOptions, OfficeOpenXmlLoadSettings? value)` [#](#method-opensettings-officeimo-word-wordloadoptions-officeimo-officeopenxmlloadsettings)

Sets [WordLoadOptions.OpenSettings](/api/word/officeimo-word-wordloadoptions/): Provides optional low-level Open XML package settings.

Parameters

**wordLoadOptions OfficeIMO.Word.WordLoadOptions required**

The instance.

**value OfficeIMO.OfficeOpenXmlLoadSettings? required**

The value.

Returns

`WordLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { OpenSettings = value };    wordLoadOptions.OpenSettings(value);
```

`public static WordLoadOptions OpenSettings(WordLoadOptions wordLoadOptions, Action<OfficeOpenXmlLoadSettings> configure)` [#](#method-opensettings-officeimo-word-wordloadoptions-action-officeimo-officeopenxmlloadsettings)

Configures [WordLoadOptions.OpenSettings](/api/word/officeimo-word-wordloadoptions/) in place (creating it when not set): Provides optional low-level Open XML package settings.

Parameters

**wordLoadOptions OfficeIMO.Word.WordLoadOptions required**

The instance.

**configure System.Action<OfficeIMO.OfficeOpenXmlLoadSettings> required**

Configures the value.

Returns

`WordLoadOptions` The same instance.

`public static WordLoadOptions OverrideStyles(WordLoadOptions wordLoadOptions, bool value = true)` [#](#method-overridestyles-officeimo-word-wordloadoptions-boolean)

Sets [WordLoadOptions.OverrideStyles](/api/word/officeimo-word-wordloadoptions/): Replaces existing styles with OfficeIMO defaults when the document is editable.

Parameters

**wordLoadOptions OfficeIMO.Word.WordLoadOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`WordLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { OverrideStyles = value };    wordLoadOptions.OverrideStyles(value);
```

PackageSecurity 2 overloads

`public static WordLoadOptions PackageSecurity(WordLoadOptions wordLoadOptions, OfficePackageSecurityOptions? value)` [#](#method-packagesecurity-officeimo-word-wordloadoptions-officeimo-officepackagesecurityoptions)

Sets DocumentLoadOptions.PackageSecurity.

Parameters

**wordLoadOptions OfficeIMO.Word.WordLoadOptions required**

The instance.

**value OfficeIMO.OfficePackageSecurityOptions? required**

The value.

Returns

`WordLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { PackageSecurity = value };    wordLoadOptions.PackageSecurity(value);
```

`public static WordLoadOptions PackageSecurity(WordLoadOptions wordLoadOptions, Action<OfficePackageSecurityOptions> configure)` [#](#method-packagesecurity-officeimo-word-wordloadoptions-action-officeimo-officepackagesecurityoptions)

Configures DocumentLoadOptions.PackageSecurity in place (creating it when not set).

Parameters

**wordLoadOptions OfficeIMO.Word.WordLoadOptions required**

The instance.

**configure System.Action<OfficeIMO.OfficePackageSecurityOptions> required**

Configures the value.

Returns

`WordLoadOptions` The same instance.

`public static WordLoadOptions Password(WordLoadOptions wordLoadOptions, string? value)` [#](#method-password-officeimo-word-wordloadoptions-string)

Sets [WordLoadOptions.Password](/api/word/officeimo-word-wordloadoptions/): Password for an encrypted Office source.

Parameters

**wordLoadOptions OfficeIMO.Word.WordLoadOptions required**

The instance.

**value string? required**

The value.

Returns

`WordLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { Password = value };    wordLoadOptions.Password(value);
```

`public static WordLoadOptions PersistenceMode(WordLoadOptions wordLoadOptions, DocumentPersistenceMode value)` [#](#method-persistencemode-officeimo-word-wordloadoptions-officeimo-documentpersistencemode)

Sets DocumentCreateOptions.PersistenceMode.

Parameters

**wordLoadOptions OfficeIMO.Word.WordLoadOptions required**

The instance.

**value OfficeIMO.DocumentPersistenceMode required**

The value.

Returns

`WordLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { PersistenceMode = value };    wordLoadOptions.PersistenceMode(value);
```

`public static WordLoadOptions ReportUnsupportedContent(WordLoadOptions wordLoadOptions, bool value = true)` [#](#method-reportunsupportedcontent-officeimo-word-wordloadoptions-boolean)

Sets [WordLoadOptions.ReportUnsupportedContent](/api/word/officeimo-word-wordloadoptions/): Reports recognized unsupported content during legacy projection.

Parameters

**wordLoadOptions OfficeIMO.Word.WordLoadOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`WordLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { ReportUnsupportedContent = value };    wordLoadOptions.ReportUnsupportedContent(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:DE267936486CB3EAB19DCE4C3B8F80596754BD1092907DD9A8902264074DE2C3 -->
