public SharedFormulaGroup(SharedFormulaRecord sfr, CellReference firstCell) {if (!sfr.isInRange(firstCell.getRow(), firstCell.getCol())) {throw new IllegalArgumentException("First formula cell " + firstCell.formatAsString()+ " is not shared formula range " + sfr.getRange() + ".");}_sfr = sfr;_firstCell = firstCell;int width = sfr.getLastColumn() - sfr.getFirstColumn() + 1;int height = sfr.getLastRow() - sfr.getFirstRow() + 1;_frAggs = new FormulaRecordAggregate[width * height];_numberOfFormulas = 0;}
public SharedFormulaGroup(SharedFormulaRecord sfr, CellReference firstCell){if (!sfr.IsInRange(firstCell.Row, firstCell.Col)){throw new ArgumentException("First formula cell " + firstCell.FormatAsString()+ " is not shared formula range " + sfr.Range.ToString() + ".");}_sfr = sfr;_firstCell = firstCell;int width = sfr.LastColumn - sfr.FirstColumn + 1;int height = sfr.LastRow - sfr.FirstRow + 1;_frAggs = new FormulaRecordAggregate[width * height];_numberOfFormulas = 0;}