Example #1
0
 public void ShitfTo(int numOfRows, bool applyFillAtPos)
 {
     if (applyFillAtPos)
     {
         FillATCellPos = ExcelUtils.ShiftTo(FillATCellPos, numOfRows);
     }
     if (!string.IsNullOrWhiteSpace(CounterCellPos))
     {
         CounterCellPos = ExcelUtils.ShiftTo(CounterCellPos, numOfRows);
     }
     if (SumCellPosList != null)
     {
         int len = SumCellPosList.Count;
         for (int i = 0; i < len; i++)
         {
             SumCellPosList[i] = ExcelUtils.ShiftTo(SumCellPosList[i], numOfRows);
         }
     }
     if (SumColumList != null)
     {
         int len = SumColumList.Count;
         for (int i = 0; i < len; i++)
         {
             string[] parts = SumColumList[i].Split('-');
             SumColumList[i] = ExcelUtils.ShiftTo(parts[0], numOfRows) + "-" + parts[1];
         }
     }
 }