ワークブックの数式計算モードの設定

Contents
[ ]

Microsoft Excel で数式計算モードを設定するには:

  1. 選択する数式その後計算オプション.
  2. いずれかのオプションを選択します。

Aspose.Cells を設定することもできます式計算モード使用してFormulaSettings.CalculationModeモード プロパティ。あなたはそれを割り当てることができますCalcModeType次のいずれかの値を持つ列挙型:

  • CalcModeType.Automatic
  • CalcModeType.AutomaticExceptTable
  • CalcModeType.Manual
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
// Create a workbook
Workbook workbook = new Workbook();
// Set the Formula Calculation Mode to Manual
workbook.Settings.FormulaSettings.CalculationMode = CalcModeType.Manual;
// Save the workbook
workbook.Save(dataDir + "output_out.xlsx", SaveFormat.Xlsx);