ExcelSaveOptionsFluent
OfficeIMO.Excel
The fluent methods of 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
Methods
public static ExcelSaveOptions AllowLoss(ExcelSaveOptions excelSaveOptions, bool value = true) #Sets ExcelSaveOptions.AllowLoss: 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
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// 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) #Sets ExcelSaveOptions.ClearCachedFormulaResultsBeforeSave: When true, removes cached formula results before this save. Ignored when ExcelSaveOptions.EvaluateFormulasBeforeSave is true.
Parameters
- excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// 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) #Sets ExcelSaveOptions.DisableFastPackageWriter: When true, disables direct fast package writers and always uses the standard save finalization path.
Parameters
- excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// 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) #Sets ExcelSaveOptions.EvaluateFormulasBeforeSave: 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
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// 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) #Sets ExcelSaveOptions.ForceFullCalculationOnOpen: When true, writes workbook calculation properties requesting a full recalculation on open.
Parameters
- excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { ForceFullCalculationOnOpen = value }; excelSaveOptions.ForceFullCalculationOnOpen(value);public static ExcelSaveOptions Format(ExcelSaveOptions excelSaveOptions, ExcelFileFormat value) #Sets ExcelSaveOptions.Format: Native physical format for streams and byte output. File paths select their format by extension.
Parameters
- excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions
- The instance.
- value OfficeIMO.Excel.ExcelFileFormat
- The value.
Examples
// 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) #Sets ExcelSaveOptions.MarkFormulasDirtyBeforeSave: When true, marks formulas dirty before this save so Excel-compatible applications recalculate on open.
Parameters
- excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { MarkFormulasDirtyBeforeSave = value }; excelSaveOptions.MarkFormulasDirtyBeforeSave(value);public static ExcelSaveOptions MaxInMemoryPackageBytes(ExcelSaveOptions excelSaveOptions, long? value) #Sets ExcelSaveOptions.MaxInMemoryPackageBytes: 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
- The instance.
- value long?
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { MaxInMemoryPackageBytes = value }; excelSaveOptions.MaxInMemoryPackageBytes(value);public static ExcelSaveOptions MaxTemporaryPackageBytes(ExcelSaveOptions excelSaveOptions, long? value) #Sets ExcelSaveOptions.MaxTemporaryPackageBytes: 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
- The instance.
- value long?
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { MaxTemporaryPackageBytes = value }; excelSaveOptions.MaxTemporaryPackageBytes(value);public static ExcelSaveOptions Password(ExcelSaveOptions excelSaveOptions, string? value) #Sets ExcelSaveOptions.Password: Output password. Assign null explicitly to remove encryption; an unset value preserves loaded encryption.
Parameters
- excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions
- The instance.
- value string?
- The value.
Examples
// 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) #Sets ExcelSaveOptions.SafePreflight: 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
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// 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) #Sets ExcelSaveOptions.SafeRepairDefinedNames: When true, attempts to repair common defined-name issues (duplicates, out-of-range LocalSheetId, #REF!) before save.
Parameters
- excelSaveOptions OfficeIMO.Excel.ExcelSaveOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { SafeRepairDefinedNames = value }; excelSaveOptions.SafeRepairDefinedNames(value);public static ExcelSaveOptions SignatureMutationPolicy(ExcelSaveOptions excelSaveOptions, OfficeSignatureMutationPolicy value) #Sets ExcelSaveOptions.SignatureMutationPolicy: 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
- The instance.
- value OfficeIMO.OfficeSignatureMutationPolicy
- The value.
Examples
// 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) #Sets ExcelSaveOptions.ValidateOpenXml: 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
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSaveOptions { ValidateOpenXml = value }; excelSaveOptions.ValidateOpenXml(value);