Class ExcelCalculationOption¶
Namespace: OfficeOpenXml.FormulaParsing
Assembly: EPPlus.dll
Options used by the formula parser
Inheritance¶
object ← ExcelCalculationOption
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Constructors¶
ExcelCalculationOption()¶
Constructor
Properties¶
AllowCircularReferences¶
Do not throw an exception if the formula parser encounters a circular reference
Property Value¶
AlwaysRefreshImageFunction¶
If true, EPPlus will download the images in the IMAGE function even if they exists in the package. The same URL will only be downloaded once. If false(default), EPPlus will only download images that doesn't exist in the package.
Property Value¶
CacheExpressions¶
Expressions in the formula calculation will be cached, to be reduced. This increases speed, if having multiple formulas using the same expressions. Caching increases memory consumption on calculate.
Property Value¶
CancellationToken¶
A cancellation token that can be used to cancel a running calculation. When cancelled, an OperationCanceledException will be thrown and the workbook will be left in an inconsistent, partially calculated state. The workbook must be discarded after cancellation — saving or recalculating a cancelled workbook is not permitted.
Property Value¶
Examples¶
using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(30));
workbook.Calculate(opt => opt.CancellationToken = cts.Token);
DisableImageFunctionDownloads¶
If true the IMAGE function will never download external content in formula calculation. It will instead return the NAME error as if the function was not implemented. NB! This property overrides the AlwaysRefreshImageFunction property if set to true.
Property Value¶
EnableUnicodeAwareStringOperations¶
Enables Unicode-aware string operations, ensuring correct handling of surrogate pairs for comparisons, substrings, and sorting within the library.
Property Value¶
FollowDependencyChain¶
If true, EPPlus will calculate the cells in order calculating any dependent cells. Default. If false, EPPlus will calculate the cells without calculating dependent cells.
Property Value¶
PrecisionAndRoundingStrategy¶
In some functions EPPlus will round double values to 15 significant figures before the value is handled. This is an option for Excel compatibility.