ワークブックの式の計算モードを設定する

Contents
[ ]

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

  1. 、次に計算オプションを選択します。 1つのオプションを選択します。

Aspose.Cellsでは、Formula Calculation Modeを設定することもできます。 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);