Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordLoadOptionsFluent

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Modifiers
static

The fluent methods of 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

Methods

public static WordLoadOptions AccessMode(WordLoadOptions wordLoadOptions, DocumentAccessMode value) #

Sets DocumentLoadOptions.AccessMode.

Parameters

wordLoadOptions OfficeIMO.Word.WordLoadOptions required
The instance.
value OfficeIMO.DocumentAccessMode required
The value.

Returns

WordLoadOptions The same instance.

Examples

// 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) #

Sets WordLoadOptions.AllowLegacyProjection: 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

// 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) #

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

// 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) #

Sets WordLoadOptions.FailOnLoss: 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

// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { FailOnLoss = value };    wordLoadOptions.FailOnLoss(value);
public static WordLoadOptions MaxDataPropertyChainLength(WordLoadOptions wordLoadOptions, int value) #

Sets WordLoadOptions.MaxDataPropertyChainLength: 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

// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { MaxDataPropertyChainLength = value };    wordLoadOptions.MaxDataPropertyChainLength(value);
public static WordLoadOptions MaxDecodedCharacters(WordLoadOptions wordLoadOptions, int value) #

Sets WordLoadOptions.MaxDecodedCharacters: 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

// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { MaxDecodedCharacters = value };    wordLoadOptions.MaxDecodedCharacters(value);
public static WordLoadOptions MaxDecodedImageBytes(WordLoadOptions wordLoadOptions, int value) #

Sets WordLoadOptions.MaxDecodedImageBytes: 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

// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { MaxDecodedImageBytes = value };    wordLoadOptions.MaxDecodedImageBytes(value);
public static WordLoadOptions MaxInputBytes(WordLoadOptions wordLoadOptions, long value) #

Sets WordLoadOptions.MaxInputBytes: 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

// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { MaxInputBytes = value };    wordLoadOptions.MaxInputBytes(value);
public static WordLoadOptions MaxLegacyInputBytes(WordLoadOptions wordLoadOptions, int value) #

Sets WordLoadOptions.MaxLegacyInputBytes: 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

// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { MaxLegacyInputBytes = value };    wordLoadOptions.MaxLegacyInputBytes(value);
public static WordLoadOptions MaxParagraphPropertyWorkBytes(WordLoadOptions wordLoadOptions, int value) #

Sets WordLoadOptions.MaxParagraphPropertyWorkBytes: 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

// 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) #

Sets WordLoadOptions.OpenSettings: 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

// 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) #

Configures WordLoadOptions.OpenSettings 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) #

Sets WordLoadOptions.OverrideStyles: 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

// 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) #

Sets DocumentLoadOptions.PackageSecurity.

Parameters

wordLoadOptions OfficeIMO.Word.WordLoadOptions required
The instance.
value OfficeIMO.OfficePackageSecurityOptions? required
The value.

Returns

WordLoadOptions The same instance.

Examples

// 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) #

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) #

Sets WordLoadOptions.Password: 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

// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Word.WordLoadOptions { Password = value };    wordLoadOptions.Password(value);
public static WordLoadOptions PersistenceMode(WordLoadOptions wordLoadOptions, DocumentPersistenceMode value) #

Sets DocumentCreateOptions.PersistenceMode.

Parameters

wordLoadOptions OfficeIMO.Word.WordLoadOptions required
The instance.
value OfficeIMO.DocumentPersistenceMode required
The value.

Returns

WordLoadOptions The same instance.

Examples

// 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) #

Sets WordLoadOptions.ReportUnsupportedContent: 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

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