# ExcelSaveOptionsFluent

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

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Modifiers**

static

The fluent methods of [ExcelSaveOptions](/api/excel/officeimo-excel-excelsaveoptions/), 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
- ExcelSaveOptionsFluent

Filter members 

Show inherited

## Methods

`public static ExcelSaveOptions AllowLoss(ExcelSaveOptions excelSaveOptions, bool value = true)` [#](#method-allowloss-officeimo-excel-excelsaveoptions-boolean)

Sets [ExcelSaveOptions.AllowLoss](/api/excel/officeimo-excel-excelsaveoptions/): Controls saves of workbooks projected from legacy XLS files when known legacy-only content cannot be represented by the selected output format. The default blocks the save.

Parameters

**excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelSaveOptions` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { AllowLoss = value };    excelSaveOptions.AllowLoss(value);
```

`public static ExcelSaveOptions ClearCachedFormulaResultsBeforeSave(ExcelSaveOptions excelSaveOptions, bool value = true)` [#](#method-clearcachedformularesultsbeforesave-officeimo-excel-excelsaveoptions-boolean)

Sets [ExcelSaveOptions.ClearCachedFormulaResultsBeforeSave](/api/excel/officeimo-excel-excelsaveoptions/): When true, removes cached formula results before this save. Ignored when [ExcelSaveOptions.EvaluateFormulasBeforeSave](/api/excel/officeimo-excel-excelsaveoptions/) is true.

Parameters

**excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelSaveOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                    // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { ClearCachedFormulaResultsBeforeSave = value };    excelSaveOptions.ClearCachedFormulaResultsBeforeSave(value);
```

`public static ExcelSaveOptions DisableFastPackageWriter(ExcelSaveOptions excelSaveOptions, bool value = true)` [#](#method-disablefastpackagewriter-officeimo-excel-excelsaveoptions-boolean)

Sets [ExcelSaveOptions.DisableFastPackageWriter](/api/excel/officeimo-excel-excelsaveoptions/): When true, disables direct fast package writers and always uses the standard save finalization path.

Parameters

**excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelSaveOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { DisableFastPackageWriter = value };    excelSaveOptions.DisableFastPackageWriter(value);
```

`public static ExcelSaveOptions EvaluateFormulasBeforeSave(ExcelSaveOptions excelSaveOptions, bool value = true)` [#](#method-evaluateformulasbeforesave-officeimo-excel-excelsaveoptions-boolean)

Sets [ExcelSaveOptions.EvaluateFormulasBeforeSave](/api/excel/officeimo-excel-excelsaveoptions/): When true, evaluates supported formulas and writes cached values before this save. Unsupported formulas are preserved for Excel-compatible applications to calculate.

Parameters

**excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelSaveOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                           // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { EvaluateFormulasBeforeSave = value };    excelSaveOptions.EvaluateFormulasBeforeSave(value);
```

`public static ExcelSaveOptions ForceFullCalculationOnOpen(ExcelSaveOptions excelSaveOptions, bool value = true)` [#](#method-forcefullcalculationonopen-officeimo-excel-excelsaveoptions-boolean)

Sets [ExcelSaveOptions.ForceFullCalculationOnOpen](/api/excel/officeimo-excel-excelsaveoptions/): When true, writes workbook calculation properties requesting a full recalculation on open.

Parameters

**excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelSaveOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                           // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { ForceFullCalculationOnOpen = value };    excelSaveOptions.ForceFullCalculationOnOpen(value);
```

`public static ExcelSaveOptions Format(ExcelSaveOptions excelSaveOptions, ExcelFileFormat value)` [#](#method-format-officeimo-excel-excelsaveoptions-officeimo-excel-excelfileformat)

Sets [ExcelSaveOptions.Format](/api/excel/officeimo-excel-excelsaveoptions/): Native physical format for streams and byte output. File paths select their format by extension.

Parameters

**excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions required**

The instance.

**value OfficeIMO.Excel.ExcelFileFormat required**

The value.

Returns

`ExcelSaveOptions` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { Format = value };    excelSaveOptions.Format(value);
```

`public static ExcelSaveOptions MarkFormulasDirtyBeforeSave(ExcelSaveOptions excelSaveOptions, bool value = true)` [#](#method-markformulasdirtybeforesave-officeimo-excel-excelsaveoptions-boolean)

Sets [ExcelSaveOptions.MarkFormulasDirtyBeforeSave](/api/excel/officeimo-excel-excelsaveoptions/): When true, marks formulas dirty before this save so Excel-compatible applications recalculate on open.

Parameters

**excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelSaveOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                            // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { MarkFormulasDirtyBeforeSave = value };    excelSaveOptions.MarkFormulasDirtyBeforeSave(value);
```

`public static ExcelSaveOptions MaxInMemoryPackageBytes(ExcelSaveOptions excelSaveOptions, long? value)` [#](#method-maxinmemorypackagebytes-officeimo-excel-excelsaveoptions-nullable-system-int64)

Sets [ExcelSaveOptions.MaxInMemoryPackageBytes](/api/excel/officeimo-excel-excelsaveoptions/): Maximum package size that may be materialized in memory while saving. The default is 256 MiB. Set to null only for explicitly trusted, intentionally larger workbooks.

Parameters

**excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions required**

The instance.

**value long? required**

The value.

Returns

`ExcelSaveOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                        // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { MaxInMemoryPackageBytes = value };    excelSaveOptions.MaxInMemoryPackageBytes(value);
```

`public static ExcelSaveOptions MaxTemporaryPackageBytes(ExcelSaveOptions excelSaveOptions, long? value)` [#](#method-maxtemporarypackagebytes-officeimo-excel-excelsaveoptions-nullable-system-int64)

Sets [ExcelSaveOptions.MaxTemporaryPackageBytes](/api/excel/officeimo-excel-excelsaveoptions/): Maximum package size that may be staged in a temporary file when a target framework requires a seekable package destination. The default is 256 MiB. Set to null only for explicitly trusted, intentionally larger workbooks.

Parameters

**excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions required**

The instance.

**value long? required**

The value.

Returns

`ExcelSaveOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { MaxTemporaryPackageBytes = value };    excelSaveOptions.MaxTemporaryPackageBytes(value);
```

`public static ExcelSaveOptions Password(ExcelSaveOptions excelSaveOptions, string? value)` [#](#method-password-officeimo-excel-excelsaveoptions-string)

Sets [ExcelSaveOptions.Password](/api/excel/officeimo-excel-excelsaveoptions/): Output password. Assign null explicitly to remove encryption; an unset value preserves loaded encryption.

Parameters

**excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions required**

The instance.

**value string? required**

The value.

Returns

`ExcelSaveOptions` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { Password = value };    excelSaveOptions.Password(value);
```

`public static ExcelSaveOptions SafePreflight(ExcelSaveOptions excelSaveOptions, bool value = true)` [#](#method-safepreflight-officeimo-excel-excelsaveoptions-boolean)

Sets [ExcelSaveOptions.SafePreflight](/api/excel/officeimo-excel-excelsaveoptions/): When true, performs a safety preflight on all worksheets before saving, removing empty containers (e.g., empty Hyperlinks/MergeCells), dropping orphaned drawing/header-footer references, and cleaning up invalid table references. This can prevent rare "Repaired Records" notices in Excel.

Parameters

**excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelSaveOptions` The same instance.

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { SafePreflight = value };    excelSaveOptions.SafePreflight(value);
```

`public static ExcelSaveOptions SafeRepairDefinedNames(ExcelSaveOptions excelSaveOptions, bool value = true)` [#](#method-saferepairdefinednames-officeimo-excel-excelsaveoptions-boolean)

Sets [ExcelSaveOptions.SafeRepairDefinedNames](/api/excel/officeimo-excel-excelsaveoptions/): When true, attempts to repair common defined-name issues (duplicates, out-of-range LocalSheetId, #REF!) before save.

Parameters

**excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelSaveOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { SafeRepairDefinedNames = value };    excelSaveOptions.SafeRepairDefinedNames(value);
```

`public static ExcelSaveOptions SignatureMutationPolicy(ExcelSaveOptions excelSaveOptions, OfficeSignatureMutationPolicy value)` [#](#method-signaturemutationpolicy-officeimo-excel-excelsaveoptions-officeimo-officesignaturemutationpolicy)

Sets [ExcelSaveOptions.SignatureMutationPolicy](/api/excel/officeimo-excel-excelsaveoptions/): Gets or sets how save operations handle digital-signature metadata. The safe default blocks package rewriting; removing or preserving invalidated markup must be selected explicitly.

Parameters

**excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions required**

The instance.

**value OfficeIMO.OfficeSignatureMutationPolicy required**

The value.

Returns

`ExcelSaveOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                        // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { SignatureMutationPolicy = value };    excelSaveOptions.SignatureMutationPolicy(value);
```

`public static ExcelSaveOptions ValidateOpenXml(ExcelSaveOptions excelSaveOptions, bool value = true)` [#](#method-validateopenxml-officeimo-excel-excelsaveoptions-boolean)

Sets [ExcelSaveOptions.ValidateOpenXml](/api/excel/officeimo-excel-excelsaveoptions/): When true, checks the output package's relationships, worksheets and cell references before publication and throws if the structure is invalid.

Parameters

**excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelSaveOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { ValidateOpenXml = value };    excelSaveOptions.ValidateOpenXml(value);
```

`public static ExcelSaveOptions XlsbUseSharedStrings(ExcelSaveOptions excelSaveOptions, bool? value = true)` [#](#method-xlsbusesharedstrings-officeimo-excel-excelsaveoptions-nullable-system-boolean)

Sets [ExcelSaveOptions.XlsbUseSharedStrings](/api/excel/officeimo-excel-excelsaveoptions/): Selects string storage when creating a native XLSB workbook. true deduplicates text cells in a shared-string table; false writes inline strings. The default null preserves the normal inline output for new workbooks and the original storage of imported XLSB packages. Shared strings retain each distinct text value in memory during save. Explicit values are rejected for imported XLSB workbooks and for output formats other than XLSB before the destination is written.

Parameters

**excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`ExcelSaveOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { XlsbUseSharedStrings = value };    excelSaveOptions.XlsbUseSharedStrings(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:50DD6E95C0B0165845E54C3731BA5C26E513AC210C0CC965E219B541C16253F6 -->
