public ArrayView MakeArrayView(Sheet sheet, int col, int row) { CellAddr ulCa = ul.Addr(col, row), lrCa = lr.Addr(col, row); ArrayView view = ArrayView.Make(ulCa, lrCa, this.sheet ?? sheet); // Forcing the evaluation of all cells in an array view value. // TODO: Doing this repeatedly, as in ManyDependents.xml, is costly for (int c = 0; c < view.Cols; c++) { for (int r = 0; r < view.Rows; r++) { // Value ignore = view[c, r]; } } return(view); }
public void ApplyToFcas(Sheet sheet, int col, int row, Action <FullCellAddr> act) { CellAddr ulCa = ul.Addr(col, row), lrCa = lr.Addr(col, row); ArrayView.Make(ulCa, lrCa, this.sheet ?? sheet).Apply(act); }