int rowCount = (range.getLastRow() - range.getFirstRow()) + 1;
int colCount = (range.getLastColumn() - range.getFirstColumn()) + 1;
for (Ptg ptg : linkedDataRecord.getFormulaOfLink()) {
if (ptg instanceof AreaPtgBase) {
AreaPtgBase areaPtg = (AreaPtgBase) ptg;
areaPtg.setFirstRow(range.getFirstRow());
areaPtg.setLastRow(range.getLastRow());
areaPtg.setFirstColumn(range.getFirstColumn());
areaPtg.setLastColumn(range.getLastColumn());
ptgList.add(areaPtg);
}
}
linkedDataRecord.setFormulaOfLink(ptgList.toArray(new Ptg[ptgList.size()]));