API Reference
Class
ExcelSaveOptions
Optional behaviors applied during ExcelSaveOptions) and CancellationToken) to strengthen robustness and CI validation.
Inheritance
- Object
- ExcelSaveOptions
Constructors
public ExcelSaveOptions() #Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
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.