Method Calculate
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
Calculate(XlsxCalculationOptions?)
Calculates every formula of the workbook's worksheets as Excel does, in the order the formulas read each other,
and gives each cell its result, which a save writes with the formula. An array formula fills the range it was
entered over, and a dynamic array spills as far as its result reaches (#SPILL! when a cell it would fill
holds something), Phase 210. A formula that uses a function this library does not calculate
(CalculatedFunctions) and every formula that reads its cell keep the values the file stores, and
are named in the result; so are the cells of a cycle. When everything was calculated and nothing changes after, the saved workbook no longer
asks Excel for a full calculation when it is opened.
public XlsxCalculationResult Calculate(XlsxCalculationOptions? options = null)
Parameters
optionsXlsxCalculationOptionsThe bounds; null for the defaults.
Returns
- XlsxCalculationResult
What was calculated and what was not.
Exceptions
- ResourceLimitExceededException
The calculation passes MaxSteps; nothing is written.
- InvalidDocumentException
A sheet's part is malformed.
- UnsupportedFeatureException
An array's results are to be written into a sheet whose rows or cells are out of order (nothing is written).