Exemplo n.º 1
0
 /// <summary>
 /// Loads the user defined functions into the Excel recalculating engine.
 /// </summary>
 /// <param name="Xls"></param>
 private void LoadUdfs(ExcelFile Xls)
 {
     Xls.AddUserDefinedFunction(TUserDefinedFunctionScope.Local, TUserDefinedFunctionLocation.Internal, new SumCellsWithSameColor());
     Xls.AddUserDefinedFunction(TUserDefinedFunctionScope.Local, TUserDefinedFunctionLocation.Internal, new IsPrime());
     Xls.AddUserDefinedFunction(TUserDefinedFunctionScope.Local, TUserDefinedFunctionLocation.Internal, new BoolChoose());
     Xls.AddUserDefinedFunction(TUserDefinedFunctionScope.Local, TUserDefinedFunctionLocation.Internal, new Lowest());
 }