API Reference
ExcelSaveOptions
Optional behaviors applied during ExcelSaveOptions) and CancellationToken) to strengthen robustness and CI validation.
Inheritance
- Object
- ExcelSaveOptions
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property ExcelSaveOptions.None
Accepted by parameters
- Method ExcelDocument.Save
- Method ExcelDocument.Save
- Method ExcelDocument.SaveAsync
- Method ExcelDocument.SaveAsync
Constructors
public ExcelSaveOptions() #Inherited Methods
Properties
public Boolean SafeRepairDefinedNames { get; set; } #When true, attempts to repair common defined-name issues (duplicates, out-of-range LocalSheetId, #REF!) before save.
public Boolean ValidateOpenXml { get; set; } #When true, validates the saved package using OpenXmlValidator and throws on any errors.
public Boolean SafePreflight { get; set; } #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.
public static ExcelSaveOptions None { get; } #Returns an options instance with all features disabled.