Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelCalculationOptions

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Source revision
5e1eb82b5acd with working tree changes
Modifiers
sealed

Controls how formula cells are treated before a workbook is saved.

Inheritance

  • object
  • ExcelCalculationOptions

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Constructors

public ExcelCalculationOptions() #

Methods

public void ClearCustomFunctions() #

Removes all custom formula functions registered for this workbook.

public void RegisterCustomFunction(string name, ExcelCustomFormulaFunction function) #

Registers or replaces a custom formula function for this workbook.

Parameters

name string required
function OfficeIMO.Excel.ExcelCustomFormulaFunction required
public bool RemoveCustomFunction(string name) #

Removes a registered custom formula function.

Parameters

name string required

Returns

bool

Properties

public int MaximumDependencyDepth { get; set; } #

Gets or sets the maximum number of nested formula cells OfficeIMO evaluates in one dependency chain.

public bool EvaluateFormulasBeforeSave { get; set; } #

When true, OfficeIMO evaluates supported formulas and writes cached values before saving. Unsupported formulas are left intact and can still be recalculated by Excel.

public bool MarkFormulasDirtyBeforeSave { get; set; } #

When true, formula cells are marked dirty so Excel-compatible applications recalculate them on open.

public bool ForceFullCalculationOnOpen { get; set; } #

When true, workbook calculation properties request a full recalculation when the file opens.

public bool ClearCachedFormulaResultsBeforeSave { get; set; } #

When true, cached formula results are removed before saving. Ignored when ExcelCalculationOptions.EvaluateFormulasBeforeSave is true.

public IReadOnlyList<string> CustomFunctionNames { get; } #

Gets the registered custom function names in ordinal order.