1
考慮下面的代碼:Aspose-Cells:我如何評估一個公式?
using Aspose.Cells
// {...}
Workbook workbook = new Workbook();
Worksheet virtualWorksheet = workbook.Worksheets[0];
virtualWorksheet.Cells[0, 0].Formula ="=1<2";
如何評估在單元格[0,0]公式?
bool isCellTrue = virtualWorksheet.Cells[0, 0].BoolValue; // will generate an exception at run-time